Module: Rackdapter::Configuration
Instance Method Summary collapse
- #apps ⇒ Object
- #config ⇒ Object
- #configure(config_path) ⇒ Object
- #load_apps ⇒ Object
- #log(message) ⇒ Object
Instance Method Details
#apps ⇒ Object
51 52 53 |
# File 'lib/rackdapter/config.rb', line 51 def apps @apps ||= {} end |
#config ⇒ Object
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_apps ⇒ Object
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() puts end |