Class: Stormtroopers::DummyTrooper
- Defined in:
- lib/stormtroopers/trooper/dummy.rb
Instance Attribute Summary
Attributes inherited from Trooper
#parameters, #started_at, #task
Instance Method Summary collapse
Methods inherited from Trooper
#after_run, #before_run, #exception, #initialize, #start, #status
Constructor Details
This class inherits a constructor from Stormtroopers::Trooper
Instance Method Details
#run ⇒ Object
4 5 6 7 8 |
# File 'lib/stormtroopers/trooper/dummy.rb', line 4 def run logger.debug "#{name}: Dummy job started, sleeping for #{sleep_duration}" sleep(sleep_duration) logger.debug "#{name}: Dummy job completed, w00t" end |