specinfra 2.0.0.beta19 → 2.0.0.beta20

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: 374f40d52ad7ed2425b6e96f97933d42a6543fd7
4
- data.tar.gz: b854ecaec380480da9fcc36bfa12b26b68c35557
3
+ metadata.gz: fde0fdddfccea8e542868cf9c1e51d7ce5a09838
4
+ data.tar.gz: ee68a571d7c0c2812832574d4a0bb09c3c0bdc83
5
5
  SHA512:
6
- metadata.gz: 143a0733c302abc798d616a912053d57b6a04a7a8b249f082c81eaeb9fad49de020a915d605d33ad785a2eda9ccd6f420e1b435a807cc78b8ba4dd547dd9b041
7
- data.tar.gz: 6cf367a944549342e45c03d576953dc9e8cfb0c553b3a916cf03ec491d27b29afa1f7528a1de3db16af5f39561619753b9db2045d2b2183a797720e9dfff173b
6
+ metadata.gz: 0540f2743077e41ecf98eadbdca9b69ef5c3f7e2c0bb1e66884cb5c3905bfc2c972da74f58cbdebe6e2b8f1325c305edd9ae1a64941dfc4aac80dedc2649ff9e
7
+ data.tar.gz: cdfa3309de23b33a7770f68884c6207531edeed81332f6d572e15cb85c89f7fac508cd964edc143467f009f4b90dbdf6b66988a01b4fae5b54d8401b7d87ef9a
@@ -106,5 +106,9 @@ class Specinfra::Command::Base::File < Specinfra::Command::Base
106
106
  def change_group(file, group)
107
107
  "chgrp #{group} #{escape(file)}"
108
108
  end
109
+
110
+ def create_as_directory(file)
111
+ "mkdir -p #{escape(file)}"
112
+ end
109
113
  end
110
114
  end
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.0.0.beta19"
2
+ VERSION = "2.0.0.beta20"
3
3
  end
@@ -26,4 +26,8 @@ describe 'File related commands' do
26
26
  context Specinfra.command.change_file_group('/tmp', 'root') do
27
27
  it { should eq 'chgrp root /tmp' }
28
28
  end
29
+
30
+ context Specinfra.command.create_file_as_directory('/tmp') do
31
+ it { should eq 'mkdir -p /tmp' }
32
+ end
29
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specinfra
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta19
4
+ version: 2.0.0.beta20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita