Class: Rackdapter::Master

Inherits:
Object
  • Object
show all
Includes:
Configuration
Defined in:
lib/rackdapter/master.rb

Instance Method Summary collapse

Methods included from Configuration

#apps, #config, #configure, #load_apps, #log

Constructor Details

#initialize(config_path) ⇒ Master

Returns a new instance of Master.



7
8
9
10
11
12
# File 'lib/rackdapter/master.rb', line 7

def initialize(config_path)
  log "Loading rackdapter config at #{config_path}"
  configure(config_path)
  log "Configuration loaded, starting master server"
  start
end

Instance Method Details

#startObject



14
15
16
17
# File 'lib/rackdapter/master.rb', line 14

def start
  load_apps
  run
end