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 +4 -4
- data/lib/specinfra/command.rb +1 -0
- data/lib/specinfra/command/alpine/base/service.rb +11 -0
- data/lib/specinfra/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 475be85ab99b344c8078231c57a8b0933d056e77
|
|
4
|
+
data.tar.gz: 1e52d5c1f4482e4ff18297b170200c4158bfefc2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7d9e9df8598cc06314573b88bf3e6c49aaa2720c896f4bca1334fba5c128b267b807b52779d564ccbf3ca6e86d06d02654a930e3c20834b900021864452db807
|
|
7
|
+
data.tar.gz: 07611b78d4978dcbaf5e8cc12140132a5a1ecbd19816f918bf1efd52c5c7bda050d4caecc2565db9708f1d5aec9a697680f48042ab337bbf767b80239f68a520
|
data/lib/specinfra/command.rb
CHANGED
|
@@ -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
|
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: 2.37.
|
|
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-
|
|
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:
|