Created
September 20, 2011 02:58
-
-
Save jwhitlark/1228206 to your computer and use it in GitHub Desktop.
Rake as a library, from anywhere in the filesystem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
require 'rubygems' | |
gem 'rake', '>= 0.7.3' | |
require 'rake' | |
Dir.chdir('where/I/want/to/be') | |
Rake.application.init('my-script-name') | |
# Tasks go here | |
Rake.application.top_level |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment