Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

rake tasks

  • Loading branch information...
commit 9bc889193a5f4b42a964f72af117a0f5aa30e5e2 1 parent 6478a63
David Chelimsky dchelimsky authored
Showing with 14 additions and 5 deletions.
  1. +14 −5 Rakefile
19 Rakefile
View
@@ -63,6 +63,14 @@ namespace :rails do
end
end
end
+
+ desc "update the rails repo"
+ task :update => :clone do
+ Dir.chdir('tmp/rails') do
+ sh "git checkout master"
+ sh "git pull"
+ end
+ end
end
namespace :generate do
@@ -97,8 +105,6 @@ namespace :db do
end
end
-
-
desc "run a variety of specs against the generated app"
task :smoke do
Dir.chdir("./tmp/example_app/") do
@@ -111,9 +117,12 @@ task :clobber do
rm_rf "pkg"
end
-task :clobber_app do
- rm_rf "tmp/example_app"
+namespace :clobber do
+ desc "clobber the generated app"
+ task :app do
+ rm_rf "tmp/example_app"
+ end
end
-task :default => [:clobber_app, "generate:app", "generate:stuff", :spec, :cucumber, :smoke]
+task :default => ["clobber:app", "generate:app", "generate:stuff", :spec, :cucumber, :smoke]
Please sign in to comment.
Something went wrong with that request. Please try again.