Sha256: 923f1749080e50b66c555e48dd92955058d43bc991fff3140b0f347bae3df144

Contents?: true

Size: 821 Bytes

Versions: 1

Compression:

Stored size: 821 Bytes

Contents

$:.unshift(File.dirname(__FILE__))

# External Libs
require 'openssl'
require 'json'
require 'uri'
require 'faraday'
require 'faraday_middleware'
require 'logger'

# Internal Libs
require 'lumberg/format_whm'
require 'lumberg/version'
require 'lumberg/exceptions'
require 'lumberg/config'
require 'lumberg/whm'

module Lumberg

  extend self

  attr_accessor :configuration

  def base_path
    File.dirname(__FILE__)
  end

  self.configuration ||= Lumberg::Config.new

   # Specificy the config via block
   #
   # ==== Attributes
   #
   # * +debug+ - Set to true to log debug info to $stderr, or a file path
   #
   # ==== Example
   #
   #   Lumberg.config do |c|
   #     c.dubug "path/to/file.log"
   #   end
   def config
     yield self.configuration if block_given?
     self.configuration.options
   end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lumberg-1.1.1 lib/lumberg.rb