Sha256: 75e782c71c411e9a7403005bd23248d64518893a2a4c50d10fc32dad57c44919
Contents?: true
Size: 544 Bytes
Versions: 9
Compression:
Stored size: 544 Bytes
Contents
command :'delete domain' do |c| c.summary = 'Delete a domain in your DigitalOcean account' c.syntax = 'ops delete domain [domain name]' c.description = "Delete the domain with #{DigitalOcean::CONFIG_FILE} credentials" c.example 'Delete the domain example.com in your DigitalOcean console', 'ops delete domain example.com' c.action do |args, options| resp = DigitalOcean::client.domains.delete name: args[0] if resp.is_a?(TrueClass) say "Domain #{args[0]} succesfully deleted!" else raise resp end end end
Version data entries
9 entries across 9 versions & 2 rubygems