serverspec 2.16.0 → 2.17.0

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: 3347f78109a3fe85b87505aa94d9fcdf3bff4c93
4
- data.tar.gz: f54d48dab898cff16c49426e4ab56d12fd5c69bb
3
+ metadata.gz: fca92f57769814db6e06b8d608b29d710edc88ca
4
+ data.tar.gz: 766045f317aec7c3fec1b747e1952d18624aabc6
5
5
  SHA512:
6
- metadata.gz: 9fa2f748f1e72a3af1a89c52170ec8ded7af18a17b6db93bbbe728c43b691ff1b76af3c3263e7eecd4fcb6da2f6f0a529503b6121a6c6c31c2ad61201c9a5b5f
7
- data.tar.gz: 675b99eb11241f818ad3ab5a25e85a87802c310f56eb457f208034dba513a415383cbdc75ab7972df18ef9db3b98d71591c0c2d5cdd9b58d25c7f70ee06b599d
6
+ metadata.gz: 6fdde5de4bb641f3311129dfcf1c6e2b9f013ebf390c28631ab8e26ea12d262d9022303c376085347d246158d14cb409af9121c9807c670ad84e6c3f9e51f719
7
+ data.tar.gz: dd9ed1a4d634d297a0ddf081d0e14dc2962855cbeca30ad16ab43f6e75b6b362f71a7c9a59c73c9918c0cdd6222d2cfc6a16a39c3761ed3130bd6a3a22d36a92
@@ -86,6 +86,10 @@ module Serverspec::Type
86
86
  @runner.check_file_is_immutable(@name)
87
87
  end
88
88
 
89
+ def exists?
90
+ @runner.check_file_exists(@name)
91
+ end
92
+
89
93
  def md5sum
90
94
  @runner.get_file_md5sum(@name).stdout.strip
91
95
  end
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "2.16.0"
2
+ VERSION = "2.17.0"
3
3
  end
data/serverspec.gemspec CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.add_runtime_dependency "rspec", "~> 3.0"
22
22
  spec.add_runtime_dependency "rspec-its"
23
23
  spec.add_runtime_dependency "multi_json"
24
- spec.add_runtime_dependency "specinfra", "~> 2.31"
24
+ spec.add_runtime_dependency "specinfra", "~> 2.32"
25
25
  spec.add_development_dependency "bundler", "~> 1.3"
26
26
  spec.add_development_dependency "rake", "~> 10.1.1"
27
27
  end
@@ -22,6 +22,10 @@ describe file('/bin/sh') do
22
22
  it { should be_symlink }
23
23
  end
24
24
 
25
+ describe file('/bin/sh') do
26
+ it { should exist }
27
+ end
28
+
25
29
  describe file('/etc/ssh/sshd_config') do
26
30
  it { should contain 'This is the sshd server system-wide configuration file' }
27
31
  end
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.16.0
4
+ version: 2.17.0
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-05-08 00:00:00.000000000 Z
11
+ date: 2015-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '2.31'
61
+ version: '2.32'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '2.31'
68
+ version: '2.32'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement