Sha256: 69fa92138831b78d4116b0dd74a8ba7abe22207448480c80b13b13897437b5f8
Contents?: true
Size: 461 Bytes
Versions: 9
Compression:
Stored size: 461 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 # this is the key: Albacore.configure( hash => hash.assemblyinfo ) def assemblyinfo config ||= AssemblyInfo.asmconfig yield(config) if block_given? config end end end
Version data entries
9 entries across 9 versions & 1 rubygems