Implement `echo' task action
This commit is contained in:
11
lib/producer/core/actions/echo.rb
Normal file
11
lib/producer/core/actions/echo.rb
Normal 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
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user