specinfra 2.31.1 → 2.32.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ac92a114a3705919efc2c56b4c6eba09a4af69b
4
- data.tar.gz: 015664f4d52904a7c571e79d2fbc3b3d31ea4ef3
3
+ metadata.gz: 5b183a092dd522c86304e51326d2605356da7df0
4
+ data.tar.gz: dfdd76656a652ff0ce058f590f93e8c9f2c369f0
5
5
  SHA512:
6
- metadata.gz: c567fbe8600390aa363a6aa9a13028194b5f9b3f95e2790ff7d32dc056ca51cbb9a8c570a850a12eefa53fe8e29f554a5cb137f9a26ef16bef661e5b50ec8475
7
- data.tar.gz: b48c94257bb8cdd3b354c4813d511bea5a25e6f963d486f204d04bbda2ccf877c34c92968cbb51c210ea8cf4321d6267b6dfeb6338525b153a90b86414a70f39
6
+ metadata.gz: 40587cb4345b8a799dc6944cdacba25ff6671fa085cb9ffbb7c703696de10ddf5b43726301dbc113a02e9c50451f7de2d9fc36873587564b3e50a61f6ac2b101
7
+ data.tar.gz: 9e93c4d46e0f6af5199bac82a638cef92e1569212c67dc723ca857fc4b4d6d7d222154cded0dc48021ed38427fc87f8bc78f2687b42454acddfa69131c912fe7
@@ -76,6 +76,10 @@ class Specinfra::Command::Base::File < Specinfra::Command::Base
76
76
  "grep -qFs -- #{escape(expected_pattern)} #{escape(file)}"
77
77
  end
78
78
 
79
+ def check_exists(file)
80
+ "test -e #{escape(file)}"
81
+ end
82
+
79
83
  def get_md5sum(file)
80
84
  "md5sum #{escape(file)} | cut -d ' ' -f 1"
81
85
  end
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.31.1"
2
+ VERSION = "2.32.0"
3
3
  end
@@ -66,3 +66,6 @@ describe get_command(:get_file_link_target, '/tmp') do
66
66
  it { should eq 'readlink -f /tmp' }
67
67
  end
68
68
 
69
+ describe get_command(:check_file_exists, '/tmp') do
70
+ it { should eq 'test -e /tmp' }
71
+ end
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.31.1
4
+ version: 2.32.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-11 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: net-ssh