Implement basic `sh' task action feature:

* Executes a command on the remote host;
* Forwards remote standard output.
This commit is contained in:
Thibault Jouan
2013-08-05 01:58:26 +00:00
parent 8123cf5052
commit f10914c7d7
6 changed files with 73 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
module Producer
module Core
module Actions
class ShellCommand < Action
def apply
env.output env.remote.execute(arguments.first)
end
end
end
end
end