specinfra 1.14.0 → 1.15.0

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
  SHA1:
3
- metadata.gz: 889ec3f197231cdaf1fb4641bd6f86186766ab1c
4
- data.tar.gz: 94b1cd8b4b41bdf1734535e2e7009d41f66ceeb4
3
+ metadata.gz: c597e926c2b12a7b6f1814648d5c70a2bb2454a6
4
+ data.tar.gz: e92955cac8c28fb09197d625231e3cc1d0f16571
5
5
  SHA512:
6
- metadata.gz: 9b9cb54c3c577cda964b261b6259c0ea8f49419b21f245a3064fba32ac0f32a05b62d3f4da9788edcaa091a0ba49a66672f5e4e67f8992a99dde2bc8e7355b9c
7
- data.tar.gz: f93a0ffa3cbd463d7a1869c11144317ec4ae1d2029b5cebd0f6ed50d1f4687d29f2b387b58781c1633c39e16955f16d85a3d0052b43fe25b65f583ca0aa7f733
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 => 'SuSE', :release => release, :arch => arch }
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?
@@ -10,6 +10,7 @@ require "specinfra/command/plamo"
10
10
  require "specinfra/command/redhat"
11
11
  require "specinfra/command/redhat7"
12
12
  require "specinfra/command/suse"
13
+ require "specinfra/command/opensuse"
13
14
  require "specinfra/command/fedora"
14
15
 
15
16
  # Solaris
@@ -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
@@ -15,6 +15,7 @@ module SpecInfra
15
15
  'RedHat',
16
16
  'RedHat7',
17
17
  'SuSE',
18
+ 'OpenSUSE',
18
19
  'SmartOS',
19
20
  'Solaris',
20
21
  'Solaris10',
@@ -1,3 +1,3 @@
1
1
  module SpecInfra
2
- VERSION = "1.14.0"
2
+ VERSION = "1.15.0"
3
3
  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: 1.14.0
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-28 00:00:00.000000000 Z
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