Sha256: 9504415f8506b6164153e8b3e01f1df3ef66ed86c574324185797f64676aef0b

Contents?: true

Size: 587 Bytes

Versions: 2

Compression:

Stored size: 587 Bytes

Contents

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

module Configuration
  module CSC
    include Configuration::NetVersion
    include Albacore::Configuration

    def self.cscconfig
      @config ||= OpenStruct.new.extend(OpenStructToHash).extend(CSC)
    end

    def csc
      config ||= CSC.cscconfig
      yield(config) if block_given?
      config
    end

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

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