Class: Enom::Commands::TransferDomain

Inherits:
Object
  • Object
show all
Defined in:
lib/enom/commands/transfer_domain.rb

Instance Method Summary collapse

Instance Method Details

#execute(args, options = {}) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/enom/commands/transfer_domain.rb', line 4

def execute(args, options={})
  name      = args.shift
  auth_code = args.shift
  Domain.transfer!(name, auth_code)
  output    = "Transferred #{name}"
  puts output
  return output
end