Sha256: c56545b854a6fac0a70fc359862cbc20098788ab2c55c11a8f3b097cda40fc04

Contents?: true

Size: 625 Bytes

Versions: 2

Compression:

Stored size: 625 Bytes

Contents

require "ostruct"
require "albacore/config/netversion"
require "albacore/support/openstruct"

module Configuration
  module MSBuild
    include Albacore::Configuration
    include Configuration::NetVersion

    def self.msbuildconfig
      @msbuildconfig ||= OpenStruct.new.extend(OpenStructToHash).extend(MSBuild)
    end

    def msbuild
      config = MSBuild.msbuildconfig
      yield(config) if block_given?
      config
    end

    def self.included(mod)
      self.msbuildconfig.use :net40
    end

    def use(netversion)
      self.command = File.join(get_net_version(netversion), "MSBuild.exe")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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