Class: DNSimple::Commands::ServiceAdd
- Inherits:
-
Object
- Object
- DNSimple::Commands::ServiceAdd
- Defined in:
- lib/dnsimple/commands/service_add.rb
Instance Method Summary collapse
Instance Method Details
#execute(args, options = {}) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/dnsimple/commands/service_add.rb', line 4 def execute(args, = {}) domain_name = args.shift domain = Domain.find(domain_name) short_name = args.shift service = Service.find(short_name) domain.add_service(short_name) puts "Added #{service.name} to #{domain_name}" end |