Implement `mkdir' task action

This commit is contained in:
Thibault Jouan
2014-01-21 15:50:07 +00:00
parent f147ce7d65
commit 7f5d1a4085
9 changed files with 75 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
@sshd
Feature: `mkdir' task action
Scenario: creates directory given as argument
Given a recipe with:
"""
target 'some_host.test'
task :create_some_dir do
mkdir 'some_directory'
end
"""
When I successfully execute the recipe
Then the remote directory "some_directory" must exists

View File

@@ -6,6 +6,10 @@ Given /^a remote file named "([^"]+)"$/ do |file_name|
write_file file_name, ''
end
Then /^the remote directory "([^"]+)" should exists$/ do |path|
check_directory_presence([path], true)
end
Then /^the remote file "([^"]+)" should contain "([^"]+)"/ do |path, content|
check_file_content path, content, true
end