class Bnet::Commands::NewCommand
Public Instance Methods
description()
click to toggle source
# File lib/bnet/commands/new.rb, line 9 def description "Request a new authenticator from server." end
extra_params()
click to toggle source
# File lib/bnet/commands/new.rb, line 13 def extra_params "[region (valid regions are: US|EU|CN)]" end
run()
click to toggle source
# File lib/bnet/commands/new.rb, line 17 def run region = (args.shift || 'US').upcase.to_sym authenticator = Authenticator.request_authenticator(region) puts authenticator.to_readable_text end