specinfra 2.37.8 → 2.37.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ccd54e249f64de79443782cfa40bf8bb9177514
4
- data.tar.gz: 7650001aa6bc85aaea75f1aa2f291c75fc4d6588
3
+ metadata.gz: 475be85ab99b344c8078231c57a8b0933d056e77
4
+ data.tar.gz: 1e52d5c1f4482e4ff18297b170200c4158bfefc2
5
5
  SHA512:
6
- metadata.gz: fa017c665714e1f47773451344d800d9a1216b21613b319f59d0adfefc842bfb1d5d296faf449855ee098f811db92a217ecccb733cbb28bc103ed3d02df7b8e7
7
- data.tar.gz: ee3291dc24060d28019cd529f7c05d84a26d589a45fe68accac8d05c21dee0e07bc74e51a3cc086e5b2c34290575c27247445b48a50313b8a0e242c0ad79901c
6
+ metadata.gz: 7d9e9df8598cc06314573b88bf3e6c49aaa2720c896f4bca1334fba5c128b267b807b52779d564ccbf3ca6e86d06d02654a930e3c20834b900021864452db807
7
+ data.tar.gz: 07611b78d4978dcbaf5e8cc12140132a5a1ecbd19816f918bf1efd52c5c7bda050d4caecc2565db9708f1d5aec9a697680f48042ab337bbf767b80239f68a520
@@ -125,6 +125,7 @@ require 'specinfra/command/alpine'
125
125
  require 'specinfra/command/alpine/base'
126
126
  require 'specinfra/command/alpine/base/package'
127
127
  require 'specinfra/command/alpine/base/process'
128
+ require 'specinfra/command/alpine/base/service'
128
129
 
129
130
  # Arch (inherit Linux)
130
131
  require 'specinfra/command/arch'
@@ -0,0 +1,11 @@
1
+ class Specinfra::Command::Alpine::Base::Service < Specinfra::Command::Linux::Base::Service
2
+ class << self
3
+ def check_is_enabled(service, level=3)
4
+ "rc-update show boot default | grep -w #{escape(service)}"
5
+ end
6
+
7
+ def check_is_running(service)
8
+ "/etc/init.d/#{escape(service)} status"
9
+ end
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.37.8"
2
+ VERSION = "2.37.9"
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: 2.37.8
4
+ version: 2.37.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-17 00:00:00.000000000 Z
11
+ date: 2015-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp
@@ -181,6 +181,7 @@ files:
181
181
  - lib/specinfra/command/alpine/base.rb
182
182
  - lib/specinfra/command/alpine/base/package.rb
183
183
  - lib/specinfra/command/alpine/base/process.rb
184
+ - lib/specinfra/command/alpine/base/service.rb
184
185
  - lib/specinfra/command/amazon.rb
185
186
  - lib/specinfra/command/amazon/base.rb
186
187
  - lib/specinfra/command/arch.rb
@@ -583,3 +584,4 @@ test_files:
583
584
  - spec/host_inventory/openbsd/filesystem_spec.rb
584
585
  - spec/host_inventory/solaris/filesystem_spec.rb
585
586
  - spec/spec_helper.rb
587
+ has_rdoc: