specinfra 2.9.3 → 2.10.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: a4596363465c36ff171a1d6408de154131d63044
4
- data.tar.gz: 31b474674fe32ddc780e6a778bf62d5d552d23b6
3
+ metadata.gz: 2db76d3a3d1d0f589c9f89e58bfa3bcff0361a95
4
+ data.tar.gz: f7af0c635ba6f7b2568b754678a74390f6b2ea4f
5
5
  SHA512:
6
- metadata.gz: 56a2fe7c908df60db921500216fec51ac5e9b6451a9754024e5a1964fc55fd6ba867b38d3a53ee04eb81faa9cad6eb811e8d2a51bb8822dd32c68d39092146a7
7
- data.tar.gz: 37815497aa0f96cc931d6ce129db2ce53b0776e50913013ebf77bde1fb628aade083b1ae2034580d9ce5fd88010fe764e6ee89e3d5570fded436983997153056
6
+ metadata.gz: a6d57502a459343c5bc4e17aa15ba5bf30e8a6b1f2553de17e39240b3ddde314aa0fc290913b54a6bcda401c48973308095217f7af44d3611fa2206b394ff0b0
7
+ data.tar.gz: 0e7918e264ed293119ad4c4266af36121edc780267844fd7e084d928c5bbdac43bff948c44e93ad48bf66b48879ca476eada472fe10827f76278d0a960d5c625
@@ -8,6 +8,10 @@ class Specinfra::Command::Base::File < Specinfra::Command::Base
8
8
  "test -d #{escape(directory)}"
9
9
  end
10
10
 
11
+ def check_is_pipe(file)
12
+ "test -p #{escape(file)}"
13
+ end
14
+
11
15
  def check_is_socket(file)
12
16
  "test -S #{escape(file)}"
13
17
  end
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.9.3"
2
+ VERSION = "2.10.0"
3
3
  end
@@ -54,6 +54,10 @@ describe get_command(:check_file_is_link, '/tmp') do
54
54
  it { should eq 'test -L /tmp' }
55
55
  end
56
56
 
57
+ describe get_command(:check_file_is_pipe, '/tmp') do
58
+ it { should eq 'test -p /tmp' }
59
+ end
60
+
57
61
  describe get_command(:get_file_link_target, '/tmp') do
58
62
  it { should eq 'readlink -f /tmp' }
59
63
  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.9.3
4
+ version: 2.10.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: 2014-12-04 00:00:00.000000000 Z
11
+ date: 2014-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh