Implement Action#output (delegates to env.output)
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
module Producer
|
||||
module Core
|
||||
class Action
|
||||
require 'forwardable'
|
||||
|
||||
extend Forwardable
|
||||
def_delegator :@env, :output
|
||||
|
||||
attr_accessor :env, :arguments
|
||||
|
||||
def initialize(env, *args)
|
||||
|
@@ -3,7 +3,7 @@ module Producer
|
||||
module Actions
|
||||
class Echo < Action
|
||||
def apply
|
||||
env.output.puts arguments.first
|
||||
output.puts arguments.first
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -3,7 +3,7 @@ module Producer
|
||||
module Actions
|
||||
class ShellCommand < Action
|
||||
def apply
|
||||
env.output.puts env.remote.execute(arguments.first)
|
||||
output.puts env.remote.execute(arguments.first)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user