Implement `file_write' action

This commit is contained in:
Thibault Jouan
2013-08-02 15:36:36 +00:00
parent 188ca2e08d
commit 892a9862fc
11 changed files with 111 additions and 8 deletions

View File

@@ -0,0 +1,15 @@
@sshd
Feature: `file_write' task action
Scenario: writes given data to given file path
Given a recipe with:
"""
target 'some_host.test'
task :write_some_data do
file_write 'some_file', 'some_content'
end
"""
When I execute the recipe
Then the exit status must be 0
And the remote file "some_file" must contain "some_content"