Class: DNSimple::Commands::DeleteTemplate

Inherits:
Object
  • Object
show all
Defined in:
lib/dnsimple/commands/delete_template.rb

Instance Method Summary collapse

Instance Method Details

#execute(args, options = {}) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/dnsimple/commands/delete_template.rb', line 4

def execute(args, options={})
  short_name = args.shift
  template = Template.find(short_name)
  template.delete

  puts "Deleted template #{short_name}"
end