class Azuki::Command::Update

update the azuki client

Public Instance Methods

beta() click to toggle source

update:beta

update to the latest beta client

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

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

update

update the azuki client

Example:

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

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

Private Instance Methods

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