Sha256: 3b3fb803ca1125f78bfb9b9072b1e43ae178f1fedce5cb320e575ef66026d3d1

Contents?: true

Size: 343 Bytes

Versions: 2

Compression:

Stored size: 343 Bytes

Contents

require 'kadmin/configuration'
require 'kadmin/error'
require 'kadmin/engine'
require 'kadmin/auth'

module Kadmin
  class << self
    delegate :logger, :logger=, to: :config

    def config
      return @config ||= Kadmin::Configuration.new
    end

    def configure
      yield(config) if block_given?
      return config
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kadmin-0.1.6 lib/kadmin.rb
kadmin-0.1.4 lib/kadmin.rb