Class: DNSimple::Commands::ApplyTemplate

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

Instance Method Summary collapse

Instance Method Details

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



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

def execute(args, options={})
  domain_name = args.shift
  template_name = args.shift

  domain = Domain.find(domain_name)
  domain.apply(template_name)

  puts "Applied template #{template_name} to #{domain.name}"
end