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

Constant Summary collapse

STRICT_TRANSPORT_SECURITY_HEADER =

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

Since:

  • 0.1.0

'Strict-Transport-Security'.freeze
STRICT_TRANSPORT_SECURITY_DEFAULT_VALUE =

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

Since:

  • 0.1.0

'max-age=31536000'.freeze

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



20
21
22
23
24
25
# File 'lib/lotus/loader.rb', line 20

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



27
28
29
30
31
32
33
34
35
36
# File 'lib/lotus/loader.rb', line 27

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