Accept mode as argument in `file_write' action

This commit is contained in:
Thibault Jouan committed 2014-04-25 00:33:24 +00:00
1 parent 47412d8bce
commit 5cb6296057
6 files changed
+64 -5

No files matched your search

+2 -2
View File
@@ -30,8 +30,8 @@ module Producer
nil
end
def file_write(path, content)
sftp.file.open path, 'w' do |f|
def file_write(path, content, mode = nil)
sftp.file.open path, 'w', mode do |f|
f.write content
end
end