Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the rakefile tasks that set up a new project aware of switchtower
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2028 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
- Loading branch information
Showing
3 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,4 +1,15 @@ | |||
#!/usr/local/bin/ruby | #!/usr/local/bin/ruby | ||
if not system "switchtower #{ARGV.join(" ")}" |
|
||
abort "Could not execute switchtower. Is it installed?" | VENDOR = File.dirname(__FILE__) + "/../vendor" | ||
|
|||
$:.unshift "#{VENDOR}/switchtower/lib" | |||
|
|||
if File.directory?("#{VENDOR}/rails/switchtower") | |||
$:.unshift "#{VENDOR}/rails/switchtower/lib" | |||
load "#{VENDOR}/rails/switchtower/bin/switchtower" | |||
elsif File.directory?("#{VENDOR}/switchtower") | |||
$:.unshift "#{VENDOR}/switchtower/lib" | |||
load "#{VENDOR}/switchtower/bin/switchtower" | |||
elsif not system "switchtower #{ARGV.join(" ")}" | |||
raise "could not locate switchtower to execute it" | |||
end | end |