Sha256: b3b3eac889f810c1ddda55873b87ed6d05ff261dde5a6978af01c3f89b355b05

Contents?: true

Size: 460 Bytes

Versions: 7

Compression:

Stored size: 460 Bytes

Contents

require 'airbrake'

module Skalera
  module Services
    class Airbrake
      def self.configure(service_name)
        api_key = Errbit.api_key(service_name)
        errbit_config = Errbit.config
        ::Airbrake.configure do |config|
          config.api_key = api_key
          config.host    = errbit_config.Address
          config.port    = errbit_config.ServicePort
          config.secure  = config.port == 443
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
skalera-services-0.2.5 lib/skalera/services/airbrake.rb
skalera-services-0.2.4 lib/skalera/services/airbrake.rb
skalera-services-0.2.3 lib/skalera/services/airbrake.rb
skalera-services-0.2.2 lib/skalera/services/airbrake.rb
skalera-services-0.2.1 lib/skalera/services/airbrake.rb
skalera-services-0.2.0 lib/skalera/services/airbrake.rb
skalera-services-0.1.0 lib/skalera/services/airbrake.rb