class Heroku::Command::Update

update the heroku client

Public Instance Methods

beta() click to toggle source

update:beta

update to the latest beta client

# File lib/heroku/command/update.rb, line 32
def beta
  output_with_arrow("Updating to latest beta client... ", false)
  Heroku::Updater.update(true)
  display "done"
rescue Exception => ex
  display "failed"
  display "   !   #{ex.message}"
end
index() click to toggle source

update

update the heroku client

# File lib/heroku/command/update.rb, line 13
def index
  if message = Heroku::Updater.disable
    error message
  end

  begin
    output_with_arrow("Updating to latest client... ", false)
    Heroku::Updater.update
    display "done"
  rescue Exception => ex
    display "failed"
    display "   !   #{ex.message}"
  end
end