Sha256: 46e5b7a966a77b3de36089a4f31ec976eda848724106b87e31377db6000d67f7

Contents?: true

Size: 618 Bytes

Versions: 5

Compression:

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

5 entries across 5 versions & 1 rubygems

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