Implement `echo' task action

This commit is contained in:
Thibault Jouan
2013-08-14 23:41:38 +00:00
parent f0e144cebd
commit a675c9c910
6 changed files with 48 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
module Producer
module Core
module Actions
class Echo < Action
def apply
env.output arguments.first
end
end
end
end
end

View File

@@ -10,7 +10,8 @@ module Producer
end
end
define_action :sh, Actions::ShellCommand
define_action :echo, Actions::Echo
define_action :sh, Actions::ShellCommand
attr_accessor :actions