Sha256: a260f22378572a1c796bedfded7674c54219770e4722d96a60d413d8544f0bcb

Contents?: true

Size: 785 Bytes

Versions: 11

Compression:

Stored size: 785 Bytes

Contents

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

module Configuration
  module AspNetCompiler
    include Configuration::NetVersion
    include Albacore::Configuration

    def self.aspnetcompilerconfig
      @config ||= OpenStruct.new.extend(OpenStructToHash).extend(AspNetCompiler)
    end

    def aspnetcompiler
      config ||= AspNetCompiler.aspnetcompilerconfig
      yield(config) if block_given?
      config
    end

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

    def use(netversion)
      netversion = :net20 if netversion == :net35 # since .net 3.5 doesn't have aspnet_compiler use .net 2.0
      self.command = File.join(get_net_version(netversion), "aspnet_compiler.exe")
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
albacore-0.3.6 lib/albacore/config/aspnetcompilerconfig.rb
albacore-1.0.0.rc.2 lib/albacore/config/aspnetcompilerconfig.rb
albacore-1.0.0.rc.1 lib/albacore/config/aspnetcompilerconfig.rb
albacore-0.3.5 lib/albacore/config/aspnetcompilerconfig.rb
albacore-0.3.4 lib/albacore/config/aspnetcompilerconfig.rb
albacore-0.3.3 lib/albacore/config/aspnetcompilerconfig.rb
albacore-0.3.2 lib/albacore/config/aspnetcompilerconfig.rb
albacore-0.3.1 lib/albacore/config/aspnetcompilerconfig.rb
albacore-0.3.0 lib/albacore/config/aspnetcompilerconfig.rb
albacore-0.2.7 lib/albacore/config/aspnetcompilerconfig.rb
albacore-0.2.6 lib/albacore/config/aspnetcompilerconfig.rb