Sha256: ddaa7c3167bd3ef6d77cb3887b47755fbf993ed775161c94feb2bc1ce97c31d8
Contents?: true
Size: 542 Bytes
Versions: 1
Compression:
Stored size: 542 Bytes
Contents
require "td/updater" module TreasureData module Command def update(op) # for gem installation, this command is disallowed - # it only works for the toolbelt. if Updater.disable? $stderr.puts Updater.disable_message exit end start_time = Time.now puts "Updating 'td' from #{TOOLBELT_VERSION}..." if new_version = Updater.update puts "Successfully updated to #{new_version} in #{humanize_time((Time.now - start_time).to_i)}." else puts "Nothing to update." end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
td-0.11.1 | lib/td/command/update.rb |