Class: RedisFailover::Runner
- Inherits:
-
Object
- Object
- RedisFailover::Runner
- Defined in:
- lib/redis_failover/runner.rb
Overview
Runner is responsible for bootstrapping the Node Manager.
Class Method Summary collapse
-
.run(options) ⇒ Object
Launches the Node Manager in a background thread.
Class Method Details
.run(options) ⇒ Object
Note:
this method blocks and does not return until the Node Manager is gracefully stopped
Launches the Node Manager in a background thread.
9 10 11 12 13 14 |
# File 'lib/redis_failover/runner.rb', line 9 def self.run() = CLI.parse() node_manager = NodeManager.new() trap_signals(node_manager) node_manager.start end |