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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a88006bcf12f56331752519df9b93cb4604d428a
4
- data.tar.gz: eb22220b6e5551eaf1b58e8a3b9201beebc2620c
3
+ metadata.gz: d1b59ea8ee3a28f6da5314af4556b453b81c6e37
4
+ data.tar.gz: de3ee76305a4aa835149978aee07913e320ca342
5
5
  SHA512:
6
- metadata.gz: 8ff71ed86d2b78ef5c14e3c29b22b41b162efdc95fe094e51c0a2dfa46c57ef94f7cfbf97983535e5c0f2e175e8b30eae8262eebd0ee17ca3d967bd3aaf04977
7
- data.tar.gz: a78383740ac905a4481d3c57bcebc77e1ab59edbba71f15e2731f09632d89e0e504f4bbff27f8d16f24df180b42eedea8333d2d4147da6829a092c41ee18cab5
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)}"
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "0.7.12"
2
+ VERSION = "0.7.13"
3
3
  end
@@ -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 -c %N /etc/pam.d/system-auth | grep -- /etc/pam.d/system-auth-ac" }
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.12
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-08-31 00:00:00.000000000 Z
11
+ date: 2013-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh