From ce96d86cddd7713107b9094adee18c17de867342 Mon Sep 17 00:00:00 2001 From: Vladimir Andrijevik Date: Thu, 14 Jul 2011 14:23:15 +0200 Subject: [PATCH] Fix usage of environment variables for Heroku credentials. --- lib/locomotive/hosting/heroku/enabler.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/locomotive/hosting/heroku/enabler.rb b/lib/locomotive/hosting/heroku/enabler.rb index 24a81bc8..b13a9df8 100644 --- a/lib/locomotive/hosting/heroku/enabler.rb +++ b/lib/locomotive/hosting/heroku/enabler.rb @@ -38,8 +38,8 @@ module Locomotive end def open_heroku_connection - login = self.config.heroku[:login] || ENV['HEROKU_LOGIN'] - password = self.config.heroku[:password] || ENV['HEROKU_PASSWORD'] + login = ENV['HEROKU_LOGIN'] || self.config.heroku[:login] + password = ENV['HEROKU_PASSWORD'] || self.config.heroku[:password] self.heroku_connection = ::Heroku::Client.new(login, password) end