Class: RedisFailover::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/redis_failover/runner.rb

Overview

Runner is responsible for bootstrapping the Node Manager.

Class Method Summary collapse

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.

Parameters:

  • options (Array)

    the command-line options



9
10
11
12
13
14
# File 'lib/redis_failover/runner.rb', line 9

def self.run(options)
  options = CLI.parse(options)
  node_manager = NodeManager.new(options)
  trap_signals(node_manager)
  node_manager.start
end