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.
- data/lib/orchestrator/task.rb +3 -0
- data/lib/orchestrator/version.rb +1 -1
- metadata +1 -1
data/lib/orchestrator/task.rb
CHANGED
@@ -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')
|
data/lib/orchestrator/version.rb
CHANGED