serverspec 2.10.0 → 2.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/serverspec/matcher/be_enabled.rb +1 -1
- data/lib/serverspec/type/service.rb +6 -2
- data/lib/serverspec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea9b0bff20566314ccfa7c0ff7b130d5f5d29c68
|
4
|
+
data.tar.gz: 1d1e87e7b4841511432d5ba976d0ac9dc47e159b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c259a9d258feff332c1e5f8e4d2ded7a804cfe5e3d0b68995eb07feaec290e774ff7c0536e775dfafee0e96a089647a35486f1ca68d109196a94358462029e4
|
7
|
+
data.tar.gz: c6d1bb12a9970cae7161776b656bb864f89a188fbacba42873755bd339b2a1d21e9ebddefd93ca6ee1472e2ba91e5f56b13601e745d38ebc16f88c6194416c85
|
@@ -1,7 +1,11 @@
|
|
1
1
|
module Serverspec::Type
|
2
2
|
class Service < Base
|
3
|
-
def enabled?(level
|
4
|
-
|
3
|
+
def enabled?(level)
|
4
|
+
if level
|
5
|
+
@runner.check_service_is_enabled(@name, level)
|
6
|
+
else
|
7
|
+
@runner.check_service_is_enabled(@name)
|
8
|
+
end
|
5
9
|
end
|
6
10
|
|
7
11
|
def installed?(name, version)
|
data/lib/serverspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serverspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.10.
|
4
|
+
version: 2.10.1
|
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-03-
|
11
|
+
date: 2015-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|