Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

REPO defaults to toplevel dir

  • Loading branch information...
commit 09328299025f403d2a495ee6339e991d4a2f6f7c 1 parent ae96481
Gabe Berke-Williams gabebw authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 Rakefile
5 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'
Please sign in to comment.
Something went wrong with that request. Please try again.