Support `file_write' status attributes

This commit is contained in:
Thibault Jouan
2014-10-08 22:30:12 +00:00
parent a84b34b7ca
commit c4006416e4
5 changed files with 34 additions and 61 deletions

View File

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