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.
@@ -6,6 +6,6 @@ orchestrator:
6
6
  steps:
7
7
  - type: sequential
8
8
  scripts:
9
- - exit 0
9
+ - command: exit 0
10
10
  failure_handler: "echo Step has failed"
11
11
  failure_handler: "echo Task :::ARG.name::: has failed"
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Orchestrator
2
- VERSION ||= '0.0.6'
2
+ VERSION ||= '0.0.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: task-orchestrator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: