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.26.2 lib/honeybadger/backend.rb
honeybadger-5.26.1 lib/honeybadger/backend.rb
honeybadger-5.26.0 lib/honeybadger/backend.rb
honeybadger-5.25.0 lib/honeybadger/backend.rb
honeybadger-5.24.0 lib/honeybadger/backend.rb
honeybadger-5.23.0 lib/honeybadger/backend.rb
honeybadger-5.22.0 lib/honeybadger/backend.rb
honeybadger-5.21.0 lib/honeybadger/backend.rb
honeybadger-5.20.1 lib/honeybadger/backend.rb
honeybadger-5.20.0 lib/honeybadger/backend.rb
honeybadger-5.19.2 lib/honeybadger/backend.rb
honeybadger-5.19.1 lib/honeybadger/backend.rb
honeybadger-5.19.0 lib/honeybadger/backend.rb
honeybadger-5.18.0 lib/honeybadger/backend.rb
honeybadger-5.17.0 lib/honeybadger/backend.rb
honeybadger-5.16.0 lib/honeybadger/backend.rb
honeybadger-5.15.6 lib/honeybadger/backend.rb
honeybadger-5.15.5 lib/honeybadger/backend.rb
honeybadger-5.15.4 lib/honeybadger/backend.rb
honeybadger-5.15.3 lib/honeybadger/backend.rb