Sha256: 2af9970b2c09266c9b2e6fa3a36c962380380bb99d3c55266c57baf91ab1cd52

Contents?: true

Size: 469 Bytes

Versions: 3

Compression:

Stored size: 469 Bytes

Contents

require 'airbrake'

module Salemove
  module ProcessHandler
    class NotifierFactory

      def self.get_notifier(env, conf)
        if conf && conf[:type] == 'airbrake'
          Airbrake.configure do |airbrake|
            airbrake.async = true
            airbrake.environment_name = env
            airbrake.host = conf.fetch(:host)
            airbrake.api_key = conf.fetch(:api_key)
          end
          Airbrake
        end
      end     

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
process_handler-0.1.3 lib/salemove/process_handler/notifier_factory.rb
process_handler-0.1.1 lib/salemove/process_handler/notifier_factory.rb
process_handler-0.1.0 lib/salemove/process_handler/notifier_factory.rb