Class: DNSimple::Commands::ListServices
- Inherits:
-
Object
- Object
- DNSimple::Commands::ListServices
- Defined in:
- lib/dnsimple/commands/list_services.rb
Instance Method Summary collapse
Instance Method Details
#execute(args, options = {}) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/dnsimple/commands/list_services.rb', line 4 def execute(args, ={}) services = Service.all puts "Found #{services.length} services:" services.each do |service| puts "\t#{service.name} (short: #{service.short_name}, id: #{service.id})" puts "\t\t#{service.description}" end end |