Class: Lotus::Loader Private

Inherits:
Object
  • Object
show all
Defined in:
lib/lotus/loader.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Load an application

Since:

  • 0.1.0

Instance Method Summary collapse

Constructor Details

#initialize(application) ⇒ Loader

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Loader.

Since:

  • 0.1.0



15
16
17
18
19
20
# File 'lib/lotus/loader.rb', line 15

def initialize(application)
  @application   = application
  @configuration = @application.configuration

  @mutex = Mutex.new
end

Instance Method Details

#load!Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0



22
23
24
25
26
27
28
29
30
# File 'lib/lotus/loader.rb', line 22

def load!
  @mutex.synchronize do
    load_configuration!
    configure_frameworks!
    load_configuration_load_paths!
    load_rack!
    load_frameworks!
  end
end