serverspec 0.7.12 → 0.7.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/serverspec/commands/darwin.rb +4 -0
- data/lib/serverspec/version.rb +1 -1
- data/spec/darwin/file_spec.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: d1b59ea8ee3a28f6da5314af4556b453b81c6e37
|
4
|
+
data.tar.gz: de3ee76305a4aa835149978aee07913e320ca342
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36f1d8dc0f1386d0fb4c5d3dd4015b7723f44d76d1f9075f401f39786848740d6b941574bd6109c572fa047b705763b8bb894af4cef2ac41bf7d02358712b8b6
|
7
|
+
data.tar.gz: b6d03fdc79362857c6ba6b8099dc63a95fb26c4343abaa9b64028e128c792c70e6ae9117a8cdf0e96e291b9036517fc31251a25227dc6cf7486fd713e307c408
|
@@ -11,6 +11,10 @@ module Serverspec
|
|
11
11
|
"openssl sha256 #{escape(file)} | cut -d'=' -f2 | cut -c 2- | grep -E ^#{escape(expected)}$"
|
12
12
|
end
|
13
13
|
|
14
|
+
def check_link(link, target)
|
15
|
+
"stat -f %Y #{escape(link)} | grep -- #{escape(target)}"
|
16
|
+
end
|
17
|
+
|
14
18
|
def check_mode(file, mode)
|
15
19
|
regexp = "^#{mode}$"
|
16
20
|
"stat -f%Lp #{escape(file)} | grep -- #{escape(regexp)}"
|
data/lib/serverspec/version.rb
CHANGED
data/spec/darwin/file_spec.rb
CHANGED
@@ -99,7 +99,7 @@ end
|
|
99
99
|
|
100
100
|
describe file('/etc/pam.d/system-auth') do
|
101
101
|
it { should be_linked_to '/etc/pam.d/system-auth-ac' }
|
102
|
-
its(:command) { should eq "stat -
|
102
|
+
its(:command) { should eq "stat -f %Y /etc/pam.d/system-auth | grep -- /etc/pam.d/system-auth-ac" }
|
103
103
|
end
|
104
104
|
|
105
105
|
describe file('dummy-link') do
|
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: 0.7.
|
4
|
+
version: 0.7.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|