Allow `mkdir' action to work recursively

This commit is contained in:
Thibault Jouan
2014-09-25 20:56:45 +00:00
parent 1e3cd696c8
commit bd66ec25e4
4 changed files with 40 additions and 7 deletions

View File

@@ -19,3 +19,13 @@ Feature: `mkdir' task action
When I successfully execute the recipe on remote target
Then the remote directory "some_directory_0700" must have 0700 mode
And the remote directory "some_directory_0500" must have 0500 mode
Scenario: creates directories recursively
Given a recipe with:
"""
task :mkdir_action do
mkdir 'some/directory'
end
"""
When I successfully execute the recipe on remote target
Then the remote directory "some/directory" must exists