Module: Rackdapter::Configuration

Included in:
Master, Proxy
Defined in:
lib/rackdapter/config.rb

Instance Method Summary collapse

Instance Method Details

#appsObject



51
52
53
# File 'lib/rackdapter/config.rb', line 51

def apps
  @apps ||= {}
end

#configObject



41
42
43
# File 'lib/rackdapter/config.rb', line 41

def config
  Rackdapter.config
end

#configure(config_path) ⇒ Object



32
33
34
35
# File 'lib/rackdapter/config.rb', line 32

def configure(config_path)
  Rackdapter.config_path = config_path
  Rackdapter.config
end

#load_appsObject



45
46
47
48
49
# File 'lib/rackdapter/config.rb', line 45

def load_apps
  Rackdapter.config.apps.each do |name,app|
    apps[name] = Application.new(app.merge(:name => name))
  end
end

#log(message) ⇒ Object



37
38
39
# File 'lib/rackdapter/config.rb', line 37

def log(message)
  puts message
end