module Faultline

Constants

Error
LOG_LABEL
RUBY_20
VERSION

Public Class Methods

[](notifier_name) click to toggle source
# File lib/faultline.rb, line 34
def [](notifier_name)
  @notifiers[notifier_name]
end
add_filter(filter = nil, &block) click to toggle source
# File lib/faultline.rb, line 57
def add_filter(filter = nil, &block)
  @notifiers[:default].add_filter(filter, &block)
end
build_notice(exception, params = {}) click to toggle source
# File lib/faultline.rb, line 61
def build_notice(exception, params = {})
  @notifiers[:default].build_notice(exception, params)
end
close() click to toggle source
# File lib/faultline.rb, line 65
def close
  @notifiers[:default].close
end
configure(notifier_name = :default) { |config = config| ... } click to toggle source
# File lib/faultline.rb, line 38
def configure(notifier_name = :default)
  yield config = Faultline::Config.new

  if @notifiers.key?(notifier_name)
    raise Airbrake::Error,
          "the '#{notifier_name}' notifier was already configured"
  else
    @notifiers[notifier_name] = Notifier.new(config)
  end
end
create_deploy(deploy_params) click to toggle source
# File lib/faultline.rb, line 69
def create_deploy(deploy_params)
  @notifiers[:default].create_deploy(deploy_params)
end
notify(exception, params = {}) click to toggle source
# File lib/faultline.rb, line 49
def notify(exception, params = {})
  @notifiers[:default].notify(exception, params)
end
notify_sync(exception, params = {}) click to toggle source
# File lib/faultline.rb, line 53
def notify_sync(exception, params = {})
  @notifiers[:default].notify_sync(exception, params)
end