task-orchestrator 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -160,10 +160,12 @@ module Orchestrator
160
160
  if @state.has_key?('email')
161
161
  invalid("config email recipients is missing or invalid") unless @state['email'].has_key?('recipients') && @state['email']['recipients'].is_a?(String) || @state['email']['recipients'].is_a?(Array)
162
162
  invalid("config email from is missing or invalid") unless @state['email'].has_key?('from') && @state['email']['from'].is_a?(String)
163
+ @state['email']['from'] = interpolate_command(@state['email']['from'])
163
164
  end
164
165
  if @state.has_key?('sms')
165
166
  invalid("task sms recipients is missing") unless @state['sms'].has_key?('recipients') && @state['sms']['recipients'].is_a?(String) || @state['sms']['recipients'].is_a?(Array)
166
167
  invalid("task sms from is missing") unless @state['sms'].has_key?('from') && @state['sms']['from'].is_a?(String)
168
+ @state['sms']['from'] = interpolate_command(@state['sms']['from'])
167
169
  end
168
170
  if @state.has_key?('defaults')
169
171
  invalid("defaults must be hash") unless @state['defaults'].is_a?(Hash)
@@ -179,6 +181,7 @@ module Orchestrator
179
181
  end
180
182
  end
181
183
  invalid("task description is missing or invalid") unless @state.has_key?('description') && @state['description'].is_a?(String)
184
+ @state['description'] = interpolate_command(@state['description'])
182
185
  invalid("task save must be boolean") if @state.has_key?('save') && !!@state['save'] != @state['save']
183
186
  @state['save'] = false unless @state.has_key?('save')
184
187
  invalid("task steps is missing") unless @state.has_key?('steps')
@@ -1,3 +1,3 @@
1
1
  module Orchestrator
2
- VERSION ||= '0.0.10'
2
+ VERSION ||= '0.0.11'
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.10
4
+ version: 0.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: