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

@@ -22,6 +22,10 @@ Then /^the remote file "([^"]+)" must contain exactly "([^"]+)"$/ do |path, cont
check_exact_file_content path, content
end
Then /^the remote file "([^"]+)" must match \/([^\/]+)\/$/ do |path, pattern|
check_file_content path, /#{pattern}/, true
end
def stat_mode(path)
in_current_dir do
('%o' % [File::Stat.new(path).mode])[-4, 4]