Sha256: 0a40e14db4ec055b5855e4478167a3b9e750d762d89d5886775a9b688bc26e22

Contents?: true

Size: 412 Bytes

Versions: 11

Compression:

Stored size: 412 Bytes

Contents

module Albacore
  module Configuration
    def self.included(base)
      Albacore.configuration.extend(base) if (base.class == Module)
    end
  end

  class ConfigData
    attr_accessor :yaml_config_folder, :log_level
  end

  class << self
    def configure
      yield(configuration) if block_given?
      configuration
    end

    def configuration
      @configuration ||= ConfigData.new
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
albacore-1.0.0 lib/albacore/config/config.rb
albacore-1.0.0.rc.3 lib/albacore/config/config.rb
albacore-0.3.6 lib/albacore/config/config.rb
albacore-1.0.0.rc.2 lib/albacore/config/config.rb
albacore-1.0.0.rc.1 lib/albacore/config/config.rb
albacore-0.3.5 lib/albacore/config/config.rb
albacore-0.3.4 lib/albacore/config/config.rb
albacore-0.3.3 lib/albacore/config/config.rb
albacore-0.3.2 lib/albacore/config/config.rb
albacore-0.3.1 lib/albacore/config/config.rb
albacore-0.3.0 lib/albacore/config/config.rb