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

@@ -0,0 +1,19 @@
module Producer
module Core
module Actions
class FileWriter < Action
def apply
env.remote.fs.file_write path, content
end
def path
arguments[0]
end
def content
arguments[1]
end
end
end
end
end