Class: Stormtroopers::DummyTrooper

Inherits:
Trooper
  • Object
show all
Defined in:
lib/stormtroopers/trooper/dummy.rb

Instance Attribute Summary

Attributes inherited from Trooper

#parameters, #task

Instance Method Summary collapse

Methods inherited from Trooper

#after_run, #before_run, #exception, #initialize, #logger

Constructor Details

This class inherits a constructor from Stormtroopers::Trooper

Instance Method Details

#runObject



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