Class: DNSimple::Commands::DescribeDomain

Inherits:
Object
  • Object
show all
Defined in:
lib/dnsimple/commands/describe_domain.rb

Instance Method Summary collapse

Instance Method Details

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



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

def execute(args, options={})
  name = args.shift
  domain = Domain.find(name)
  puts "Domain #{domain.name}:"
  puts "\tID: #{domain.id}"
  puts "\tCreated: #{domain.created_at}"
  puts "\tName Server Status: #{domain.name_server_status}"
end