Class: DNSimple::Commands::ApplyTemplate
- Inherits:
-
Object
- Object
- DNSimple::Commands::ApplyTemplate
- 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, ={}) 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 |