class Leeroy::Task::Sleep
Public Instance Methods
perform(args = self.args, options = self.options, global_options = self.global_options)
click to toggle source
Calls superclass method
Leeroy::Task::Base#perform
# File lib/leeroy/task/sleep.rb, line 7 def perform(args = self.args, options = self.options, global_options = self.global_options) super(args, options, global_options) begin logger.debug "performing for #{self.class}" logger.debug "state: #{self.state}" interval = self.options[:interval].to_i logger.debug "sleeping: #{interval} seconds" sleep interval dump_state logger.debug "done performing for #{self.class}" rescue StandardError => e raise e end end