Method: Convoy::App#setup_application

Defined in:
lib/convoy/app.rb

#setup_applicationObject



19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/convoy/app.rb', line 19

def setup_application
    old_error_sev_threshold = error_logger.sev_threshold
    begin
        error_logger.sev_threshold = ::Logger::DEBUG
        cli_app_configuration      = Convoy::Setup::Dsl::Global.new(&@block)
        @setup                     = Convoy::SetupAccessor.new(cli_app_configuration)
        self
    rescue => e
        handle_convoy_error(e)
    ensure
        error_logger.sev_threshold = old_error_sev_threshold
    end
end