Class: DNSimple::Commands::ListTemplates
- Inherits:
-
Object
- Object
- DNSimple::Commands::ListTemplates
- Defined in:
- lib/dnsimple/commands/list_templates.rb
Instance Method Summary collapse
Instance Method Details
#execute(args, options = {}) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/dnsimple/commands/list_templates.rb', line 4 def execute(args, ={}) templates = Template.all puts "Found #{templates.length} templates:" templates.each do |template| puts "\t#{template.name} (short_name:#{template.short_name})" end end |