Sha256: 2159a38ba64333c754ca981bf9eae51788212b08a67d34970426c3a08676d2c4

Contents?: true

Size: 384 Bytes

Versions: 2

Compression:

Stored size: 384 Bytes

Contents

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

module Configuration
  module AssemblyInfo
    include Albacore::Configuration
    
    def self.asmconfig
      @config ||= OpenStruct.new.extend(OpenStructToHash).extend(AssemblyInfo)
    end
    
    def assemblyinfo
      config ||= AssemblyInfo.asmconfig
      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/assemblyinfoconfig.rb
albacore-1.0.0.rc.3 lib/albacore/config/assemblyinfoconfig.rb