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 +4 -4
- data/lib/specinfra/command/debian/base/port.rb +4 -3
- data/lib/specinfra/command/debian/base/service.rb +4 -3
- data/lib/specinfra/version.rb +1 -1
- data/spec/command/debiantesting/port_spec.rb +8 -0
- data/spec/command/debiantesting/service_spec.rb +8 -0
- data/spec/command/debianunstable/port_spec.rb +8 -0
- data/spec/command/debianunstable/service_spec.rb +8 -0
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 596a60daf7e5fa95bdc0a961afebd91b23e67f76047ce1df0aba7bb1e059e896
|
4
|
+
data.tar.gz: 4fc1cbf1cc54559eb1d9fd9149a9a6ec83403a6800171b3ffb44c4932ac81075
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
5
|
-
|
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
|
-
|
5
|
-
|
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
|
|
data/lib/specinfra/version.rb
CHANGED
@@ -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_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.
|
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-
|
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
|