Fix usage of environment variables for Heroku credentials.
This commit is contained in:
parent
4a9da56341
commit
ce96d86cdd
@ -38,8 +38,8 @@ module Locomotive
|
|||||||
end
|
end
|
||||||
|
|
||||||
def open_heroku_connection
|
def open_heroku_connection
|
||||||
login = self.config.heroku[:login] || ENV['HEROKU_LOGIN']
|
login = ENV['HEROKU_LOGIN'] || self.config.heroku[:login]
|
||||||
password = self.config.heroku[:password] || ENV['HEROKU_PASSWORD']
|
password = ENV['HEROKU_PASSWORD'] || self.config.heroku[:password]
|
||||||
|
|
||||||
self.heroku_connection = ::Heroku::Client.new(login, password)
|
self.heroku_connection = ::Heroku::Client.new(login, password)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user