namespace :jumpup do namespace :heroku do task :start => ["add_remote", "check"] task :finish => ["deploy"] desc "Add Heroku git remotes" task add_remote: :environment do Jumpup::Heroku::Integrate.add_remote end desc "Check if there's someone else integrating the project" task check: :environment do Jumpup::Heroku::Integrate.check end desc "Deploy to heroku" task deploy: :environment do Jumpup::Heroku::Integrate.deploy end namespace :deploy do desc "Deploy to production" task production: :environment do Jumpup::Heroku::Integrate.deploy_to_production end end end end namespace :integrate do desc 'Alias to jumpup:heroku:deploy:production' task production: :environment do Rake.application.invoke_task('jumpup:heroku:deploy:production') end end