Sha256: a9805337217003a133d31a038355e4f2f0ef29dd370f9e4cf837b3fca20a122d

Contents?: true

Size: 530 Bytes

Versions: 1

Compression:

Stored size: 530 Bytes

Contents

# frozen_string_literal: true

module Rollbar
  module Mode
    # Rollbar development minor mode
    class Development

      class << self

        # :reek:TooManyStatements
        def apply
          Rollbar.reset_notifier!
          Rollbar.notifier = Rollbar::Mode::LocalNotifier.new

          Rollbar.configure do |config|
            config.enabled = false
            config.raise_on_error = true
          end

          warn 'Rollbar: disabled, errors re-raised automatically'
        end

      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rollbar-mode-0.0.1 lib/rollbar/mode/development.rb