Implement Action#remote (delegates to env.remote)

This commit is contained in:
Thibault Jouan
2014-01-09 00:42:34 +00:00
parent e567c61e4e
commit 29c26ab961
6 changed files with 20 additions and 15 deletions

View File

@@ -3,7 +3,7 @@ module Producer
module Actions
class FileWriter < Action
def apply
env.remote.fs.file_write path, content
remote.fs.file_write path, content
end
def path

View File

@@ -3,7 +3,7 @@ module Producer
module Actions
class ShellCommand < Action
def apply
output.puts env.remote.execute(arguments.first)
output.puts remote.execute(arguments.first)
end
end
end