Sha256: 08e7a63f55730ba89b452a42d751f5e53ddaaf7073adb61c64d10b2502c02814

Contents?: true

Size: 582 Bytes

Versions: 79

Compression:

Stored size: 582 Bytes

Contents

require 'forwardable'

require 'honeybadger/backend/base'
require 'honeybadger/backend/server'
require 'honeybadger/backend/test'
require 'honeybadger/backend/null'
require 'honeybadger/backend/debug'

module Honeybadger
  # @api private
  module Backend
    class BackendError < StandardError; end

    def self.mapping
      @@mapping ||= {
        server: Server,
        test: Test,
        null: Null,
        debug: Debug
      }.freeze
    end

    def self.for(backend)
      mapping[backend] or raise(BackendError, "Unable to locate backend: #{backend}")
    end
  end
end

Version data entries

79 entries across 79 versions & 1 rubygems

Version Path
honeybadger-5.15.2 lib/honeybadger/backend.rb
honeybadger-5.15.1 lib/honeybadger/backend.rb
honeybadger-5.15.0 lib/honeybadger/backend.rb
honeybadger-5.14.2 lib/honeybadger/backend.rb
honeybadger-5.14.1 lib/honeybadger/backend.rb
honeybadger-5.14.0 lib/honeybadger/backend.rb
honeybadger-5.13.3 lib/honeybadger/backend.rb
honeybadger-5.13.2 lib/honeybadger/backend.rb
honeybadger-5.13.1 lib/honeybadger/backend.rb
honeybadger-5.13.0 lib/honeybadger/backend.rb
honeybadger-5.12.0 lib/honeybadger/backend.rb
honeybadger-5.11.2 lib/honeybadger/backend.rb
honeybadger-5.11.1 lib/honeybadger/backend.rb
honeybadger-5.11.0 lib/honeybadger/backend.rb
honeybadger-5.8.0 lib/honeybadger/backend.rb
honeybadger-5.7.0 lib/honeybadger/backend.rb
honeybadger-5.6.0 lib/honeybadger/backend.rb
honeybadger-5.5.1 lib/honeybadger/backend.rb
honeybadger-5.5.0 lib/honeybadger/backend.rb
honeybadger-5.4.1 lib/honeybadger/backend.rb