lib/pah/files/lib/tasks/integration.rake in pah-0.0.4 vs lib/pah/files/lib/tasks/integration.rake in pah-0.0.5
- old
+ new
@@ -1,8 +1,9 @@
-# -*- encoding : utf-8 -*-
+# encoding: utf-8
+
namespace :integration do
- APP = ENV['APP']
+ APP = ENV['APP'] unless defined?(APP)
namespace :heroku do
task :add_remote do
remote = `git remote |grep heroku`
sh "git remote add heroku git@heroku.com:#{APP}.git" if remote.strip.blank?
@@ -17,13 +18,13 @@
exit
end
end
task :lock do
user = `whoami`
- Bundler.with_clean_env { sh "heroku config:add INTEGRATING_BY=#{user}" }
+ Bundler.with_clean_env { sh "heroku config:set INTEGRATING_BY=#{user} --app #{APP}" }
end
task :unlock do
- Bundler.with_clean_env { sh "heroku config:remove INTEGRATING_BY" }
+ Bundler.with_clean_env { sh "heroku config:unset INTEGRATING_BY --app #{APP}" }
end
end
end
INTEGRATION_TASKS = %w(