Class: DNSimple::Commands::DescribeService

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

Instance Method Summary collapse

Instance Method Details

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



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

def execute(args, options={})
  short_name = args.shift
  service = Service.find(short_name)
  puts "\t#{service.name} (short: #{service.short_name}, id: #{service.id})"
  puts "\t\t#{service.description}"
end