Skip to content

Instantly share code, notes, and snippets.

@laribee
Created October 17, 2008 19:12
Show Gist options
  • Select an option

  • Save laribee/17499 to your computer and use it in GitHub Desktop.

Select an option

Save laribee/17499 to your computer and use it in GitHub Desktop.
# build_tools.rb
@nant = ".\\tools\nant-0.86\nant.exe"
def nant(build_file = 'default.build', *tasks)
tasks_to_run = tasks.map {|t| t.to_s}.join(', ')
sh "#{@nant} -f:#{build_file} #{tasks_to_run}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment