Implement `yaml_write' action

This commit is contained in:
Thibault Jouan
2014-10-11 00:47:16 +00:00
parent 9780cdf220
commit 0ba12bfb90
7 changed files with 76 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
@sshd
Feature: `yaml_write' task action
Background:
Given a recipe with:
"""
task :yaml_write_action do
yaml_write 'some_file', data: { foo: 'bar' }
end
"""
Scenario: writes given data as YAML
When I successfully execute the recipe on remote target
Then the remote file "some_file" must match /^:foo: bar$/