class Bnet::Commands::InfoCommand

Public Instance Methods

description() click to toggle source
# File lib/bnet/commands/info.rb, line 9
def description
  "Print serial, secret and restoration code of an authenticator."
end
extra_params() click to toggle source
# File lib/bnet/commands/info.rb, line 13
def extra_params
  "<serial> <secret>"
end
run() click to toggle source
# File lib/bnet/commands/info.rb, line 17
def run
  serial, secret = @args.shift(2)

  authenticator = Authenticator.new(serial, secret)
  puts authenticator.to_readable_text
end