Sha256: 391182d311296eeb456984318f526d79f73c8e5b715047a905bb3ea4ec3f674f

Contents?: true

Size: 386 Bytes

Versions: 1

Compression:

Stored size: 386 Bytes

Contents

require 'rake/tasklib'

module Albacore
	class MSBuildTask < Rake::TaskLib
		attr_accessor :name
		
		def initialize(name=:msbuild, &block)
			@name = name
			@msbuild = MSBuild.new
			@block = block
			define
		end
		
		def define
			task name do
				@block.call(@msbuild) unless @block.nil?
				@msbuild.build
				fail if @msbuild.failed
			end
		end		
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
albacore-0.0.7 lib/rake/msbuildtask.rb