Permalink
Browse files

REPO defaults to toplevel dir

  • Loading branch information...
1 parent ae96481 commit 09328299025f403d2a495ee6339e991d4a2f6f7c @gabebw gabebw committed Jul 16, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 Rakefile
View
@@ -20,10 +20,11 @@ namespace :test do
end
namespace :test_project do
- desc 'Suspend a new project. Pass REPO=... to change the Suspenders repo.'
+ desc 'Suspend a new project. Pass REPO=... to change the Suspenders repo (defaults to dir with Rakefile).'
task :generate do
FileUtils.rm_rf(TEST_PROJECT)
- sh './bin/suspenders', 'create', TEST_PROJECT, ENV['REPO'].to_s
+ repo = (ENV['REPO'] || "file://#{Dir.pwd}").to_s
+ sh "./bin/suspenders", 'create', TEST_PROJECT, repo
end
desc 'Remove a suspended project'

0 comments on commit 0932829

Please sign in to comment.