Sha256: 4ea40bf77f3b132721d92a49441f7940b8c6996b32aee0d6258309ce21a30934

Contents?: true

Size: 277 Bytes

Versions: 10

Compression:

Stored size: 277 Bytes

Contents

module DNSimple
  module Commands
    class DomainList
      def execute(args, options = {})
        domains = Domain.all
        puts "Found #{domains.length} domains:"
        domains.each do |domain|
          puts "\t#{domain.name}"
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dnsimple-ruby-1.7.1 lib/dnsimple/commands/domain_list.rb
dnsimple-ruby-1.7.0 lib/dnsimple/commands/domain_list.rb
dnsimple-ruby-1.6.0 lib/dnsimple/commands/domain_list.rb
dnsimple-ruby-1.5.5 lib/dnsimple/commands/domain_list.rb
dnsimple-ruby-1.5.4 lib/dnsimple/commands/domain_list.rb
dnsimple-ruby-1.5.3 lib/dnsimple/commands/domain_list.rb
dnsimple-ruby-1.5.2 lib/dnsimple/commands/domain_list.rb
dnsimple-ruby-1.5.1 lib/dnsimple/commands/domain_list.rb
dnsimple-ruby-1.4.1 lib/dnsimple/commands/domain_list.rb
dnsimple-ruby-1.4.0 lib/dnsimple/commands/domain_list.rb