Support `file_write' status attributes

This commit is contained in:
Thibault Jouan committed 2014-10-08 22:36:32 +00:00
1 parent a84b34b7ca
commit c4006416e4
5 files changed
+34 -61

No files matched your search

+2 -2
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