4 5 6 7 8 9 10
# File 'lib/dnsimple/commands/list_contacts.rb', line 4 def execute(args, options={}) contacts = Contact.all puts "Found #{contacts.length} contacts:" contacts.each do |contact| puts "\t#{contact.name} (id:#{contact.id})" end end