Guest User

Untitled

a guest
Apr 19th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. task :deploy do
  2. info = `git svn info`
  3. info = `svn info` if info.blank? # well we should work on SVN too. =)
  4. abort "Your checkout is not up-to-date!
  5. Bring it up to date before you deploy." if info.match(/Revision: (\d+)/)[1].to_i < revision
  6.  
  7. [:'vlad:update', :'vlad:migrate', :'vlad:start'].each { |t| Rake::Task[t].invoke }
  8. end
Add Comment
Please, Sign In to add comment