Sha256: 0c5bc524d4941079f1015f7ac86dfc29908dc487b62ad443cbff6b727eaff3d4

Contents?: true

Size: 570 Bytes

Versions: 3

Compression:

Stored size: 570 Bytes

Contents

require "sentinel_api/version"
require 'sentinel_api/configuration'
require 'sentinel_api/notifier'
require 'sentinel_api/client'
require 'forwardable'

module SentinelApi
  PUBLIC_NOTIFIER_METHODS = %w(warn info error).freeze
  class << self
    extend Forwardable

    def_delegators :notifier, *PUBLIC_NOTIFIER_METHODS

    def configuration
      @configuration ||= Configuration.new
    end

    def configure
      yield(configuration)
    end

    def notifier
      Notifier
    end

    def default_logger
      configuration.default_logger
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
logkeeper_api-0.0.4 lib/sentinel_api.rb
logkeeper_api-0.0.3 lib/sentinel_api.rb
logkeeper_api-0.0.2 lib/sentinel_api.rb