class Bnet::Commands::RestoreCommand
Public Instance Methods
description()
click to toggle source
# File lib/bnet/commands/restore.rb, line 9 def description "Restore an authenticator from server and save it." end
extra_params()
click to toggle source
# File lib/bnet/commands/restore.rb, line 13 def extra_params "<serial> <restorecode>" end
run()
click to toggle source
# File lib/bnet/commands/restore.rb, line 17 def run serial, restorecode = @args.shift(2) authenticator = Authenticator.restore_authenticator(serial, restorecode) puts authenticator.to_readable_text end