Sha256: a3efa508339a5560da3b291a8189e67b316873ad5a179ea3708b1684e8dcd557

Contents?: true

Size: 330 Bytes

Versions: 10

Compression:

Stored size: 330 Bytes

Contents

module DNSimple
  module Commands
    class TemplateList
      def execute(args, options = {})
        templates = Template.all
        puts "Found #{templates.length} templates:"
        templates.each do |template|
          puts "\t#{template.name} (short_name:#{template.short_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/template_list.rb
dnsimple-ruby-1.7.0 lib/dnsimple/commands/template_list.rb
dnsimple-ruby-1.6.0 lib/dnsimple/commands/template_list.rb
dnsimple-ruby-1.5.5 lib/dnsimple/commands/template_list.rb
dnsimple-ruby-1.5.4 lib/dnsimple/commands/template_list.rb
dnsimple-ruby-1.5.3 lib/dnsimple/commands/template_list.rb
dnsimple-ruby-1.5.2 lib/dnsimple/commands/template_list.rb
dnsimple-ruby-1.5.1 lib/dnsimple/commands/template_list.rb
dnsimple-ruby-1.4.1 lib/dnsimple/commands/template_list.rb
dnsimple-ruby-1.4.0 lib/dnsimple/commands/templates_list.rb