Implement action arguments logging

This commit is contained in:
Thibault Jouan
2014-09-17 00:22:05 +00:00
parent 3cb195c9a0
commit 563bf9cccf
4 changed files with 39 additions and 8 deletions

View File

@@ -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