Sha256: 65c0fe232bdcab3487eedf7b6eace638020d9dce6377505225a88f01f807209b

Contents?: true

Size: 426 Bytes

Versions: 1

Compression:

Stored size: 426 Bytes

Contents

require 'ostruct'
require 'albacore/support/openstruct'

module Configuration
  module AssemblyInfo
    @asmconfig = OpenStruct.new.extend(OpenStructToHash)
    def self.asmconfig
      @asmconfig
    end

    def assemblyinfo
      config = AssemblyInfo.asmconfig
      yield(config) if block_given?
      config
    end
  end
end

class Albacore::Configuration
  include Configuration::AssemblyInfo
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
albacore-0.2.0.preview1 lib/albacore/config/assemblyinfoconfig.rb