Sha256: 08e3eac9b82bd8954408ca046dc456b096445be4b2c5711653d0ef13f9073653

Contents?: true

Size: 505 Bytes

Versions: 10

Compression:

Stored size: 505 Bytes

Contents

module DNSimple
  module Commands
    class ServiceListAvailable
      def execute(args, options = {})
        domain_name = args.shift
        domain = Domain.find(domain_name)
        services = domain.available_services
        puts "Found #{services.length} available services for #{domain_name}"
        services.each do |service|
          puts "\t#{service.name} (short: #{service.short_name}, id: #{service.id})"
          puts "\t\t#{service.description}"
        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/service_list_available.rb
dnsimple-ruby-1.7.0 lib/dnsimple/commands/service_list_available.rb
dnsimple-ruby-1.6.0 lib/dnsimple/commands/service_list_available.rb
dnsimple-ruby-1.5.5 lib/dnsimple/commands/service_list_available.rb
dnsimple-ruby-1.5.4 lib/dnsimple/commands/service_list_available.rb
dnsimple-ruby-1.5.3 lib/dnsimple/commands/service_list_available.rb
dnsimple-ruby-1.5.2 lib/dnsimple/commands/service_list_available.rb
dnsimple-ruby-1.5.1 lib/dnsimple/commands/service_list_available.rb
dnsimple-ruby-1.4.1 lib/dnsimple/commands/service_list_available.rb
dnsimple-ruby-1.4.0 lib/dnsimple/commands/service_list_available.rb