Class: MultipleMan::Runner
- Inherits:
-
Object
- Object
- MultipleMan::Runner
- Extended by:
- Forwardable
- Defined in:
- lib/multiple_man/runner.rb
Defined Under Namespace
Classes: ShutDown
Constant Summary collapse
- MODES =
[:general, :seed].freeze
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
Constructor Details
Instance Method Details
#run ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/multiple_man/runner.rb', line 16 def run trap_signals! preload_framework! channel.prefetch(prefetch_size) build_listener.listen rescue ShutDown connection.close end |