task-orchestrator 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- 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