Class: Indocker::ApplicationInitializer

Inherits:
Object
  • Object
show all
Includes:
SmartIoC::Iocify
Defined in:
lib/indocker/application_initializer.rb

Instance Method Summary collapse

Instance Method Details

#init_app(current_path, env: :development) ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/indocker/application_initializer.rb', line 13

def init_app(current_path, env: :development)
  docker_api.check_docker_installed!

  config.root(
    Pathname.new(
      File.expand_path(
        File.join(config_locator.locate(current_path), '../..')
      )
    )
  )

  require(config_locator.locate(current_path))

  registry_authenticator.authenticate!

  envs_manager.load_init_application_env_variables
end