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