specinfra 2.82.23 → 2.82.24

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2bb01e92f4048c67284e481792e819aa154976574ebecc5d0f08a3f619553dc7
4
- data.tar.gz: 4df996d6652f4cfaacef45d6ff7a35e0fec0d64951b0767a286325890ec837df
3
+ metadata.gz: 596a60daf7e5fa95bdc0a961afebd91b23e67f76047ce1df0aba7bb1e059e896
4
+ data.tar.gz: 4fc1cbf1cc54559eb1d9fd9149a9a6ec83403a6800171b3ffb44c4932ac81075
5
5
  SHA512:
6
- metadata.gz: f7b2e74dd455b7ce505871a08bf73b9b01a485233c20eaa2272c0b84dc76baf117fe60174e398081e76ff8701b40ddfb857b18b0c78ca79c563e6fff91cdf576
7
- data.tar.gz: 4a977f26975443d83927b4e06fb9265f1c251c4f62922f12f4530fabb6d2a8ced02a583ca3b85dfc0cbacdb0849f2b29b22a25a7256397971a3f70ce92dac148
6
+ metadata.gz: c0691a838b1686c4159b41b4594a433cc57b6e530b85d34e4d7299241a9426451bcc31ddd9bbf90ce2b59177acd3eb2b9e2416d073a74c3a83b556be36c2fa4e
7
+ data.tar.gz: c46185b12504e1ef60c1a161a51902b01ef6a917c010b35cb5a83f64707522243fe498f6c2260e0f403f54730cf3972a412da2ec425d56e47042726f16dbf1c8
@@ -1,10 +1,11 @@
1
1
  class Specinfra::Command::Debian::Base::Port < Specinfra::Command::Linux::Base::Port
2
2
  class << self
3
3
  def create(os_info=nil)
4
- if (os_info || os)[:release].to_i < 8
5
- self
6
- else
4
+ release = (os_info || os)[:release]
5
+ if ["testing", "unstable"].include?(release) || release.to_i >= 8
7
6
  Specinfra::Command::Debian::V8::Port
7
+ else
8
+ self
8
9
  end
9
10
  end
10
11
  end
@@ -1,10 +1,11 @@
1
1
  class Specinfra::Command::Debian::Base::Service < Specinfra::Command::Linux::Base::Service
2
2
  class << self
3
3
  def create(os_info=nil)
4
- if (os_info || os)[:release].to_i < 8
5
- self
6
- else
4
+ release = (os_info || os)[:release]
5
+ if ["testing", "unstable"].include?(release) || release.to_i >= 8
7
6
  Specinfra::Command::Debian::V8::Service
7
+ else
8
+ self
8
9
  end
9
10
  end
10
11
 
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.82.23"
2
+ VERSION = "2.82.24"
3
3
  end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ property[:os] = nil
4
+ set :os, :family => 'debian', :release => 'testing'
5
+
6
+ describe get_command(:check_port_is_listening, '80') do
7
+ it { should eq 'ss -tunl | grep -E -- :80\ ' }
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ property[:os] = nil
4
+ set :os, :family => 'debian', :release => 'testing'
5
+
6
+ describe get_command(:check_service_is_enabled, 'apache') do
7
+ it { should eq 'systemctl --quiet is-enabled apache||ls /etc/rc[S5].d/S??apache >/dev/null 2>/dev/null' }
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ property[:os] = nil
4
+ set :os, :family => 'debian', :release => 'unstable'
5
+
6
+ describe get_command(:check_port_is_listening, '80') do
7
+ it { should eq 'ss -tunl | grep -E -- :80\ ' }
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ property[:os] = nil
4
+ set :os, :family => 'debian', :release => 'unstable'
5
+
6
+ describe get_command(:check_service_is_enabled, 'apache') do
7
+ it { should eq 'systemctl --quiet is-enabled apache||ls /etc/rc[S5].d/S??apache >/dev/null 2>/dev/null' }
8
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specinfra
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.82.23
4
+ version: 2.82.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-13 00:00:00.000000000 Z
11
+ date: 2021-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp
@@ -537,6 +537,10 @@ files:
537
537
  - spec/command/debian8/port_spec.rb
538
538
  - spec/command/debian9/port_spec.rb
539
539
  - spec/command/debian9/service_spec.rb
540
+ - spec/command/debiantesting/port_spec.rb
541
+ - spec/command/debiantesting/service_spec.rb
542
+ - spec/command/debianunstable/port_spec.rb
543
+ - spec/command/debianunstable/service_spec.rb
540
544
  - spec/command/esxi/package_spec.rb
541
545
  - spec/command/factory_spec.rb
542
546
  - spec/command/freebsd/file_spec.rb
@@ -674,6 +678,10 @@ test_files:
674
678
  - spec/command/debian8/port_spec.rb
675
679
  - spec/command/debian9/port_spec.rb
676
680
  - spec/command/debian9/service_spec.rb
681
+ - spec/command/debiantesting/port_spec.rb
682
+ - spec/command/debiantesting/service_spec.rb
683
+ - spec/command/debianunstable/port_spec.rb
684
+ - spec/command/debianunstable/service_spec.rb
677
685
  - spec/command/esxi/package_spec.rb
678
686
  - spec/command/factory_spec.rb
679
687
  - spec/command/freebsd/file_spec.rb