task-orchestrator 0.0.4 → 0.0.5
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/lib/orchestrator/task.rb +2 -2
- data/lib/orchestrator/version.rb +1 -1
- metadata +1 -1
data/lib/orchestrator/task.rb
CHANGED
@@ -31,10 +31,10 @@ module Orchestrator
|
|
31
31
|
@state = (@options.statefile && File.exist?(@options.statefile) && !@options.reset) ? YAML.load_file(@options.statefile) : @settings['orchestrator'][@options.name]
|
32
32
|
|
33
33
|
@options.email = false unless @state.has_key?('email')
|
34
|
-
@options.email_on_success = (@options.email and @state['email'].has_key?('on_success')) ? @state['email']['on_success']
|
34
|
+
@options.email_on_success = (@options.email and @state['email'].has_key?('on_success')) ? @state['email']['on_success'] : true
|
35
35
|
|
36
36
|
@options.sms = false unless @state.has_key?('sms')
|
37
|
-
@options.sms_on_success = (@options.sms and @state['sms'].has_key?('on_success')) ? @state['sms']['on_success']
|
37
|
+
@options.sms_on_success = (@options.sms and @state['sms'].has_key?('on_success')) ? @state['sms']['on_success'] : false
|
38
38
|
end
|
39
39
|
|
40
40
|
def invalid(reason)
|
data/lib/orchestrator/version.rb
CHANGED