Method: RFlow.run!

Defined in:
lib/rflow.rb

.run!(config_database_path = nil, daemonize = false) ⇒ Object

Start RFlow running. This is the main programmatic entry point to the application. Pulls in the configuration, sets up logging, and starts the master note.

Parameters:

  • config_database_path (String) (defaults to: nil)

    the path to the SQLite configuration database

  • daemonize (boolean) (defaults to: false)

    true to fork and daemonize; false to run in the foreground



39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/rflow.rb', line 39

def self.run!(config_database_path = nil, daemonize = false)
  @config_database_path = config_database_path
  @daemonize = daemonize

  establish_configuration
  chdir_application_directory
  setup_logger
  start_master_node
rescue SystemExit => e
  # Do nothing, just prevent a normal exit from causing an unsightly
  # error in the logs
end