Module: Appsignal::Integrations::PadrinoPlugin

Defined in:
lib/appsignal/integrations/padrino.rb

Class Method Summary collapse

Class Method Details

.initObject


5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/appsignal/integrations/padrino.rb', line 5

def self.init
  Appsignal.logger.info("Loading Padrino (#{Padrino::VERSION}) integration")

  root             = Padrino.mounted_root
  Appsignal.config = Appsignal::Config.new(
    root,
    Padrino.env,
    :log_path => File.join(root, 'log')
  )

  Appsignal.start_logger
  Appsignal.start
end