class Maintainer::I_Instructions
Public Class Methods
new(msg_success, msg_error, should_crash)
click to toggle source
# File lib/maintainer_core/instructions.rb, line 9 def initialize(msg_success, msg_error, should_crash) @msg_success = msg_success @msg_error = msg_error @should_crash = should_crash end
Public Instance Methods
crash_on_error!()
click to toggle source
# File lib/maintainer_core/instructions.rb, line 19 def crash_on_error!() return false end
error_message!()
click to toggle source
# File lib/maintainer_core/instructions.rb, line 30 def error_message!() if not @msg_error or @msg_error.empty? return "[Error]" end return "#{@msg_error}" end
run!()
click to toggle source
# File lib/maintainer_core/instructions.rb, line 15 def run!() return true end
success_message!()
click to toggle source
# File lib/maintainer_core/instructions.rb, line 23 def success_message!() if not @msg_success or @msg_success.empty? return "[Success]" end return "#{@msg_success}" end