48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# File 'lib/iron_worker_ng/feature/common/merge_exec.rb', line 48
def merge_exec(path = nil, args = {})
@exec ||= nil
return @exec unless path
if (not args.is_a?(Hash)) && (not args.is_a?(Array))
args = [args]
end
unless @exec.nil?
IronCore::Logger.warn 'IronWorkerNG', "Ignoring attempt to merge exec with path='#{path}' and args='#{args.inspect}'"
return
end
@exec = IronWorkerNG::Feature::Common::MergeExec::Feature.new(self, path, args)
IronCore::Logger.info 'IronWorkerNG', "Detected exec with path='#{path}' and args='#{args.inspect}'"
@features << @exec
end
|