Class: DNSimple::Commands::CreateDomain
- Inherits:
-
Object
- Object
- DNSimple::Commands::CreateDomain
- Defined in:
- lib/dnsimple/commands/create_domain.rb
Instance Method Summary collapse
Instance Method Details
#execute(args, options = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/dnsimple/commands/create_domain.rb', line 4 def execute(args, ={}) name = args.shift domain = Domain.create(name) puts "Created #{domain.name}" if template = .delete(:template) domain.apply(template) puts "Applied template #{template} to #{domain.name}" end end |