Implement action arguments logging
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
module Producer
|
||||
module Core
|
||||
class Action
|
||||
INSPECT_ARGUMENTS_SUM_LEN = 68.freeze
|
||||
|
||||
extend Forwardable
|
||||
def_delegators :@env, :input, :output, :error_output, :remote
|
||||
def_delegators :remote, :fs
|
||||
@@ -17,7 +19,14 @@ module Producer
|
||||
end
|
||||
|
||||
def to_s
|
||||
name
|
||||
[name, inspect_arguments].join ' '
|
||||
end
|
||||
|
||||
|
||||
private
|
||||
|
||||
def inspect_arguments
|
||||
@arguments.inspect[0, INSPECT_ARGUMENTS_SUM_LEN - name.length]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -20,7 +20,7 @@ module Producer
|
||||
if task.condition_met?
|
||||
env.log "Task: `#{task}' applying..."
|
||||
task.actions.each do |e|
|
||||
env.log " action: #{e} applying"
|
||||
env.log " action: #{e}"
|
||||
e.apply unless env.dry_run?
|
||||
end
|
||||
else
|
||||
|
Reference in New Issue
Block a user