Method: Virtuatable::Application.load!

Defined in:
lib/virtuatable/application.rb

.load!(name, locations: caller_locations, path: '.') ⇒ Object

Loads the application in normal mode, call this from a config.ru file to load the environment, configuration, and require the necessary files.

Parameters:

  • name (String)

    the name of the service you’re loading.



16
17
18
19
20
21
22
23
24
25
# File 'lib/virtuatable/application.rb', line 16

def self.load!(name, locations: caller_locations, path: '.')
  builder = Virtuatable::Builders::Base.new(
    locations: locations,
    path: path,
    name: name
  )
  instance.builder = builder
  builder.load!
  builder
end