specinfra 1.14.0 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/specinfra/backend/exec.rb +5 -1
- data/lib/specinfra/command.rb +1 -0
- data/lib/specinfra/command/opensuse.rb +14 -0
- data/lib/specinfra/helper/os.rb +1 -0
- data/lib/specinfra/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c597e926c2b12a7b6f1814648d5c70a2bb2454a6
|
4
|
+
data.tar.gz: e92955cac8c28fb09197d625231e3cc1d0f16571
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6b49eab58264011c290fb7585bdacf5f3a99bcc34ffed93ccf798fb5efe5b16d1cc366445f87a798887e092bece1eec79e259ba34f8c9a119acb7c03e395c41
|
7
|
+
data.tar.gz: 2dee4a4617da351403b0cfc3887e32bb8d2b6138ed4170269eb190260f8900258c2521e453815d7e1b0a5a2c78af940c739c0f73fd03da3ede586e1ae7cd2575
|
@@ -207,8 +207,12 @@ module SpecInfra
|
|
207
207
|
line = run_command('cat /etc/SuSE-release').stdout
|
208
208
|
if line =~ /SUSE Linux Enterprise Server (\d+)/
|
209
209
|
release = $1
|
210
|
+
family = 'SuSE'
|
211
|
+
elsif line =~ /openSUSE (\d+\.\d+|\d+)/
|
212
|
+
release = $1
|
213
|
+
family = 'OpenSUSE'
|
210
214
|
end
|
211
|
-
{ :family =>
|
215
|
+
{ :family => family, :release => release, :arch => arch }
|
212
216
|
elsif run_command('ls /etc/debian_version').success?
|
213
217
|
lsb_release = run_command("lsb_release -ir")
|
214
218
|
if lsb_release.success?
|
data/lib/specinfra/command.rb
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
module SpecInfra
|
2
|
+
module Command
|
3
|
+
class OpenSUSE < SuSE
|
4
|
+
def check_enabled(service, level=nil)
|
5
|
+
"systemctl is-enabled #{escape(service)}.service"
|
6
|
+
end
|
7
|
+
|
8
|
+
def check_running(service)
|
9
|
+
"systemctl is-active #{escape(service)}.service"
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/lib/specinfra/helper/os.rb
CHANGED
data/lib/specinfra/version.rb
CHANGED
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: 1.
|
4
|
+
version: 1.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -132,6 +132,7 @@ files:
|
|
132
132
|
- lib/specinfra/command/gentoo.rb
|
133
133
|
- lib/specinfra/command/linux.rb
|
134
134
|
- lib/specinfra/command/openbsd.rb
|
135
|
+
- lib/specinfra/command/opensuse.rb
|
135
136
|
- lib/specinfra/command/plamo.rb
|
136
137
|
- lib/specinfra/command/redhat.rb
|
137
138
|
- lib/specinfra/command/redhat7.rb
|