Sha256: 8d35733bbcd616a67ced8ea204800f6f2dd38635d8b0a43200e95696f0f19d43

Contents?: true

Size: 352 Bytes

Versions: 2

Compression:

Stored size: 352 Bytes

Contents

require "ostruct"
require "albacore/support/openstruct"

module Configuration
  module PLink
    include Albacore::Configuration

    def self.plinkconfig
      @config ||= OpenStruct.new.extend(OpenStructToHash).extend(PLink)
    end

    def plink
      config ||= PLink.plinkconfig
      yield(config) if block_given?
      config
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
albacore-1.0.0 lib/albacore/config/plinkconfig.rb
albacore-1.0.0.rc.3 lib/albacore/config/plinkconfig.rb