class Heroku::Command::Update

update the heroku client

Public Instance Methods

beta() click to toggle source

update:beta

update to the latest beta client

$ heroku update Updating from v1.2.3… done, updated to v2.3.4.pre

# File lib/heroku/command/update.rb, line 29
def beta
  validate_arguments!
  update_from_url("https://toolbelt.herokuapp.com/download/beta-zip")
end
index() click to toggle source

update

update the heroku client

Example:

$ heroku update Updating from v1.2.3… done, updated to v2.3.4

# File lib/heroku/command/update.rb, line 17
def index
  validate_arguments!
  update_from_url("https://toolbelt.herokuapp.com/download/zip")
end

Private Instance Methods

update_from_url(url) click to toggle source
# File lib/heroku/command/update.rb, line 36
def update_from_url(url)
  Heroku::Updater.check_disabled!
  action("Updating from #{Heroku::VERSION}") do
    if new_version = Heroku::Updater.update(url)
      status("updated to #{new_version}")
    else
      status("nothing to update")
    end
  end
end