Sha256: b19a97f7a0c4de41667a4657ace6aa646ebeea7b19d9b602d3d5f19105e54966

Contents?: true

Size: 1.08 KB

Versions: 6

Compression:

Stored size: 1.08 KB

Contents

# frozen_string_literal: true

require 'doing/version'
require 'time'
require 'date'
require 'yaml'
require 'pp'
require 'csv'
require 'tempfile'
require 'chronic'
# require 'amatch'
require 'haml'
require 'json'
require 'logger'
require 'safe_yaml/load'
require 'doing/hash'
require 'doing/colors'
require 'doing/string'
require 'doing/time'
require 'doing/array'
require 'doing/symbol'
require 'doing/util'
require 'doing/configuration'
require 'doing/item'
require 'doing/note'
require 'doing/wwidfile'
require 'doing/wwid'
require 'doing/log_adapter'
require 'doing/errors'
require 'doing/hooks'
require 'doing/plugin_manager'
require 'doing/pager'
# require 'doing/markdown_document_listener'

# Main doing module
module Doing
  class << self
    #
    # Fetch the logger
    #
    # @return     the LogAdapter instance.
    #
    def logger
      @logger ||= LogAdapter.new((ENV['DOING_LOG_LEVEL'] || :info).to_sym)
    end

    def config
      @config ||= Configuration.new
    end

    def config_with(file, options = {})
      @config = Configuration.new(file, options: options)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
doing-2.0.19 lib/doing.rb
doing-2.0.18 lib/doing.rb
doing-2.0.17 lib/doing.rb
doing-2.0.16 lib/doing.rb
doing-2.0.15 lib/doing.rb
doing-2.0.13 lib/doing.rb