task-orchestrator 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/examples/failure_handler +1 -1
- data/lib/orchestrator/task.rb +2 -1
- data/lib/orchestrator/version.rb +1 -1
- metadata +1 -1
data/examples/failure_handler
CHANGED
data/lib/orchestrator/task.rb
CHANGED
@@ -82,11 +82,12 @@ module Orchestrator
|
|
82
82
|
if command.is_a?(String)
|
83
83
|
command = { 'command' => interpolate_command(command) }
|
84
84
|
elsif command.is_a?(Hash)
|
85
|
-
invalid(error_prefix + " command is invalid") unless command.has_key?('command') && command.is_a?(String)
|
85
|
+
invalid(error_prefix + " command is invalid") unless command.has_key?('command') && command['command'].is_a?(String)
|
86
86
|
command['command'] = interpolate_command(command['command'])
|
87
87
|
else
|
88
88
|
invalid(error_prefix + " is invalid")
|
89
89
|
end
|
90
|
+
command
|
90
91
|
end
|
91
92
|
|
92
93
|
def validate_config
|
data/lib/orchestrator/version.rb
CHANGED