Sha256: 418fd62ce9af2d331430a2b1b40f24d6a53eafc2709717bc963b4665fbe53b81

Contents?: true

Size: 890 Bytes

Versions: 13

Compression:

Stored size: 890 Bytes

Contents

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

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

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

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

13 entries across 13 versions & 1 rubygems

Version Path
lumberg-4.1.0 lib/lumberg.rb
lumberg-4.0.0 lib/lumberg.rb
lumberg-3.1.0 lib/lumberg.rb
lumberg-3.0.0 lib/lumberg.rb
lumberg-2.0.1 lib/lumberg.rb
lumberg-2.0.0 lib/lumberg.rb
lumberg-2.0.0.pre20 lib/lumberg.rb
lumberg-2.0.0.pre18 lib/lumberg.rb
lumberg-2.0.0.pre15 lib/lumberg.rb
lumberg-2.0.0.pre12 lib/lumberg.rb
lumberg-2.0.0.pre9 lib/lumberg.rb
lumberg-2.0.0.pre8 lib/lumberg.rb
lumberg-2.0.0.pre7 lib/lumberg.rb