Implement `file_write' action

This commit is contained in:
Thibault Jouan
2013-08-02 15:36:36 +00:00
parent 188ca2e08d
commit 892a9862fc
11 changed files with 111 additions and 8 deletions

View File

@@ -17,6 +17,12 @@ module Producer
rescue Net::SFTP::StatusException
false
end
def file_write(path, content)
sftp.file.open path, 'w' do |f|
f.write content
end
end
end
end
end