task-orchestrator 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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