Permalink
Browse files

Creating rake task to ship the code 🚢

  • Loading branch information...
1 parent af80b43 commit 5249f152f2dcd761991856476c5191934118b4ed Jeffrey Peckham and Vinicius Fuentes committed Apr 2, 2013
Showing with 11 additions and 0 deletions.
  1. +11 −0 rake/other.rake
View
@@ -0,0 +1,11 @@
+desc "Pulls the most recent code, run all the tests and pushes the repo"
+task :shipit do
+ %x[git pull --rebase origin master]
+ abort "Failed to pull, aborting." if $?.exitstatus > 0
+
+ Rake::Task[:default].invoke
+
+ %x[git push origin master]
+ abort "Failed to push, aborting." if $?.exitstatus > 0
+end
+

0 comments on commit 5249f15

Please sign in to comment.