Sha256: ec0dd9ad275ca7be9ce6efc7c21fe3a39d983f5013b2d99bb8b6ba93d0c730f8

Contents?: true

Size: 654 Bytes

Versions: 5

Compression:

Stored size: 654 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

5 entries across 5 versions & 1 rubygems

Version Path
albacore-0.2.5 lib/albacore/config/msbuildconfig.rb
albacore-0.2.4 lib/albacore/config/msbuildconfig.rb
albacore-0.2.3 lib/albacore/config/msbuildconfig.rb
albacore-0.2.2 lib/albacore/config/msbuildconfig.rb
albacore-0.2.0.preview2 lib/albacore/config/msbuildconfig.rb