Sha256: 75a9f2946b784934734e25856073ef291673cf00ba3fc7d0545ee1e0cb2d06c3

Contents?: true

Size: 705 Bytes

Versions: 1

Compression:

Stored size: 705 Bytes

Contents

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

module Configuration
  module MSBuild
    include Configuration::NetVersion

    @msbuildconfig = OpenStruct.new.extend(OpenStructToHash).extend(MSBuild)
    def self.msbuildconfig
      @msbuildconfig
    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

class Albacore::Configuration
  include Configuration::MSBuild
end

Version data entries

1 entries across 1 versions & 1 rubygems

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