Class: DNSimple::Commands::RemoveService
- Inherits:
-
Object
- Object
- DNSimple::Commands::RemoveService
- Defined in:
- lib/dnsimple/commands/remove_service.rb
Instance Method Summary collapse
Instance Method Details
#execute(args, options = {}) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/dnsimple/commands/remove_service.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.remove_service(service.id) puts "Removed #{service.name} from #{domain_name}" end |