Sha256: c67ff42eb97fd9cb23566a0c2b24d01406f6b1d34bff01dbe880a2accf390d5c

Contents?: true

Size: 349 Bytes

Versions: 2

Compression:

Stored size: 349 Bytes

Contents

require 'rake/tasklib'

def commandtask(name=:command, *args, &block)
	Albacore::CommandTask.new(name, *args, &block)
end
	
module Albacore	
	class CommandTask < Albacore::AlbacoreTask
		def execute(task_args)
			cmd = Command.new
			@block.call(cmd, *task_args) unless @block.nil?
			cmd.execute
			fail if cmd.failed
		end	
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
albacore-0.0.9 lib/rake/commandtask.rb
albacore-0.0.8 lib/rake/commandtask.rb