specinfra 2.76.6 → 2.76.7

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: e1d4ad6bc39584be6e949860d5db3de866e07cec
4
- data.tar.gz: b48c7cc6940c203212b6d271b481ff43642f7de9
3
+ metadata.gz: 4cd763fdd6237b7dbac88091ea30e7f658fafdaf
4
+ data.tar.gz: c587f5b0de1d32d946d74399ac2e086e05c0c974
5
5
  SHA512:
6
- metadata.gz: 0bf3b910361462c1d84dcae72c0e56f8baec78365cccdd91766cedea2b6a3bafdbddb1c38bc5041695a54219349781309a284867726fe320563221294e10771a
7
- data.tar.gz: d7c348841e5d87c369383fbc180c6a9948080a5450eb4ad9810c0b8dc8ac3692df75c6dacee9d3b8a372d6609e6f7360146b6d52d8e754ae03b34a7fb3f2c203
6
+ metadata.gz: e4a3b1e452d9b30f2cdaa9dedb689aaf209c01515a0eaf38a8327906a835ec3b4b062c74b54f0ddab53f22a55fa721c7c0f10fe9b0f07a0d7e8d10fb536cfb4d
7
+ data.tar.gz: b5ce08ff8dd4af0b243be065cc5703f4fbd98549659a651764d918b6f7672b9626935a77029e3450ab3bac009156a029b7c26c8cdd5758fa0b0d42083ae422cc
@@ -240,6 +240,7 @@ require 'specinfra/command/opensuse/base/service'
240
240
  # SLES (inherit SuSE)
241
241
  require 'specinfra/command/sles'
242
242
  require 'specinfra/command/sles/base'
243
+ require 'specinfra/command/sles/base/service'
243
244
  require 'specinfra/command/sles/v12'
244
245
  require 'specinfra/command/sles/v12/service'
245
246
 
@@ -0,0 +1,11 @@
1
+ class Specinfra::Command::Sles::Base::Service < Specinfra::Command::Suse::Base::Service
2
+ class << self
3
+ def create(os_info=nil)
4
+ if (os_info || os)[:release].to_i < 12
5
+ self
6
+ else
7
+ Specinfra::Command::Sles::V12::Service
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.76.6"
2
+ VERSION = "2.76.7"
3
3
  end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ property[:os] = nil
4
+ set :os, :family => 'sles', :release => '15'
5
+
6
+ describe get_command(:check_service_is_enabled, 'httpd') do
7
+ it { should eq 'systemctl --quiet is-enabled httpd' }
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.76.6
4
+ version: 2.76.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-29 00:00:00.000000000 Z
11
+ date: 2019-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp
@@ -409,6 +409,7 @@ files:
409
409
  - lib/specinfra/command/redhat/v7/service.rb
410
410
  - lib/specinfra/command/sles.rb
411
411
  - lib/specinfra/command/sles/base.rb
412
+ - lib/specinfra/command/sles/base/service.rb
412
413
  - lib/specinfra/command/sles/v12.rb
413
414
  - lib/specinfra/command/sles/v12/service.rb
414
415
  - lib/specinfra/command/smartos.rb
@@ -594,6 +595,7 @@ files:
594
595
  - spec/command/redhat7/interface_spec.rb
595
596
  - spec/command/redhat7/port_spec.rb
596
597
  - spec/command/redhat7/service_spec.rb
598
+ - spec/command/sles15/service_spec.rb
597
599
  - spec/command/ubuntu/ppa_spec.rb
598
600
  - spec/command/windows/registry_key_spec.rb
599
601
  - spec/command/windows/service_spec.rb
@@ -724,6 +726,7 @@ test_files:
724
726
  - spec/command/redhat7/interface_spec.rb
725
727
  - spec/command/redhat7/port_spec.rb
726
728
  - spec/command/redhat7/service_spec.rb
729
+ - spec/command/sles15/service_spec.rb
727
730
  - spec/command/ubuntu/ppa_spec.rb
728
731
  - spec/command/windows/registry_key_spec.rb
729
732
  - spec/command/windows/service_spec.rb