lib/heroku_deploy/tasks.rb in heroku_deploy-0.0.9 vs lib/heroku_deploy/tasks.rb in heroku_deploy-0.0.10
- old
+ new
@@ -17,10 +17,11 @@
def initialize( options = {} )
Rake.application.heroku_deploy_tasks = self
@staging_app = options.delete(:staging_app)
@production_app = options.delete(:production_app)
+ @heroku_deploy = HerokuDeploy.new
define
end
def define
@@ -88,15 +89,15 @@
end
namespace :backup do
desc 'Backup and download the staging code and database in a heroku bundle'
task :staging => :environment do
- heroku_deploy.backup "grouppay-staging"
+ heroku_deploy.backup staging_app
end
desc 'Backup and download the production code and database in a heroku bundle'
task :production => :environment do
- heroku_deploy.backup "grouppay"
+ heroku_deploy.backup production_app
end
end
end
end
\ No newline at end of file