Class: DNSimple::Commands::ListDomains
- Inherits:
-
Object
- Object
- DNSimple::Commands::ListDomains
- Defined in:
- lib/dnsimple/commands/list_domains.rb
Instance Method Summary collapse
Instance Method Details
#execute(args, options = {}) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/dnsimple/commands/list_domains.rb', line 4 def execute(args, ={}) domains = Domain.all puts "Found #{domains.length} domains:" domains.each do |domain| puts "\t#{domain.name}" end end |