Skip to content

Commit

Permalink
add a couple more requires to edge cases where deferall needs to be o…
Browse files Browse the repository at this point in the history
…verridden
  • Loading branch information
geemus committed Jun 27, 2012
1 parent 1f1dd23 commit e610eff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/heroku/auth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ def ask_for_password
end

def ask_for_and_save_credentials
require("heroku-api") # for the errors
begin
@credentials = ask_for_credentials
write_credentials
Expand Down
4 changes: 2 additions & 2 deletions lib/heroku/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@ def self.prepare_run(cmd, args=[])
end

def self.run(cmd, arguments=[])
object, method = prepare_run(cmd, arguments.dup)
begin
object, method = prepare_run(cmd, arguments.dup)
object.send(method)
rescue => error
rescue Interrupt, StandardError => error
# load likely error classes, as they may not be loaded yet due to defered loads
require 'heroku-api'
require 'rest_client'
Expand Down

0 comments on commit e610eff

Please sign in to comment.