Skip to content
Derick Bailey edited this page Dec 4, 2010 · 4 revisions

Generic Command Execution Task

As a way to help people use the built in logging and auto-configuration capabilities of Albacore, a generic CommandTask has been added. This task will allow you to run any arbitrary command, with parameters, from your rakefile.

How to use the ExecTask


exec do |cmd|
	cmd.command = "tools/my-cool-tool.exe"
	cmd.parameters "--help"
end

command (required)

You can specify the location of the command that you wish to use.

parameters (optional)

You can specify any valid parameter for your command, here, as an array.

YAML configuration

This task supports configuration via an external YAML file. For more information, see the yamlconfig page.

Clone this wiki locally