Sha256: 05e0d2bae4e9da9faf485f9ee93ae6cd3ccd2b14bcb1f9fcc646518061489838

Contents?: true

Size: 504 Bytes

Versions: 23

Compression:

Stored size: 504 Bytes

Contents

module DNSimple
  module Commands
    class ListAvailableServices
      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

23 entries across 23 versions & 2 rubygems

Version Path
dnsimple-ruby-1.3.2 lib/dnsimple/commands/list_available_services.rb
dnsimple-ruby-1.3.1 lib/dnsimple/commands/list_available_services.rb
dnsimple-ruby-1.3.0 lib/dnsimple/commands/list_available_services.rb
sparqcode-dnsimple-ruby-1.2.6 lib/dnsimple/commands/list_available_services.rb
dnsimple-ruby-1.2.6 lib/dnsimple/commands/list_available_services.rb
dnsimple-ruby-1.2.5 lib/dnsimple/commands/list_available_services.rb
dnsimple-ruby-1.2.4 lib/dnsimple/commands/list_available_services.rb
dnsimple-ruby-1.2.3 lib/dnsimple/commands/list_available_services.rb
dnsimple-ruby-1.2.2 lib/dnsimple/commands/list_available_services.rb
dnsimple-ruby-1.2.1 lib/dnsimple/commands/list_available_services.rb
dnsimple-ruby-1.2.0 lib/dnsimple/commands/list_available_services.rb
dnsimple-ruby-1.1.1 lib/dnsimple/commands/list_available_services.rb
dnsimple-ruby-1.0.0 lib/dnsimple/commands/list_available_services.rb
dnsimple-ruby-0.9.9 lib/dnsimple/commands/list_available_services.rb
dnsimple-ruby-0.9.8 lib/dnsimple/commands/list_available_services.rb
dnsimple-ruby-0.9.7 lib/dnsimple/commands/list_available_services.rb
dnsimple-ruby-0.9.6 lib/dnsimple/commands/list_available_services.rb
dnsimple-ruby-0.9.5 lib/dnsimple/commands/list_available_services.rb
dnsimple-ruby-0.9.4 lib/dnsimple/commands/list_available_services.rb
dnsimple-ruby-0.9.3 lib/dnsimple/commands/list_available_services.rb