class Qurd::Action::Dummy
Example of a sub-classed {#Qurd::Action}
Public Class Methods
configure(action)
click to toggle source
# File lib/qurd/action/dummy.rb, line 6 def self.configure(action) case action when 'launch' then qurd_logger.debug('launch') when 'launch_error' then qurd_logger.debug('launch_error') when 'terminate' then qurd_logger.debug('terminate') when 'terminate_error' then qurd_logger.debug('terminate_error') when 'test' then qurd_logger.debug('test') end end
Public Instance Methods
launch()
click to toggle source
# File lib/qurd/action/dummy.rb, line 16 def launch message.context[:dummy] = true qurd_logger.debug('Qurd is debugging') if qurd_config.debug? qurd_logger.info("Received message #{message.inspect}") end