Sha256: 1de874b9f67dfd60599b8fba24e156c3df346505c4018198c69fdb667ee427b2

Contents?: true

Size: 379 Bytes

Versions: 10

Compression:

Stored size: 379 Bytes

Contents

module DNSimple
  module Commands
    class ServiceList
      def execute(args, options = {})
        services = Service.all
        puts "Found #{services.length} services:"
        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.rb
dnsimple-ruby-1.7.0 lib/dnsimple/commands/service_list.rb
dnsimple-ruby-1.6.0 lib/dnsimple/commands/service_list.rb
dnsimple-ruby-1.5.5 lib/dnsimple/commands/service_list.rb
dnsimple-ruby-1.5.4 lib/dnsimple/commands/service_list.rb
dnsimple-ruby-1.5.3 lib/dnsimple/commands/service_list.rb
dnsimple-ruby-1.5.2 lib/dnsimple/commands/service_list.rb
dnsimple-ruby-1.5.1 lib/dnsimple/commands/service_list.rb
dnsimple-ruby-1.4.1 lib/dnsimple/commands/service_list.rb
dnsimple-ruby-1.4.0 lib/dnsimple/commands/service_list.rb