lib/open-dock/commands/delete_host.rb in open-dock-0.0.10 vs lib/open-dock/commands/delete_host.rb in open-dock-0.0.11

- old
+ new

@@ -1,9 +1,9 @@ -command :'delete host' do |c| - c.summary = 'Delete a host in your DigitalOcean account' - c.syntax = 'ops delete host [DNS_name]' +command :delete do |c| + c.summary = 'Delete a host in your provider account' + c.syntax = 'ops delete [DNS_name]' c.description = "Delete the host, based on DNS_name, which (not need but) should be described in its #{Ops::HOSTS_DIR}/[DNS_name].yml file " - c.example 'Delete the host example.com in your DigitalOcean console', 'ops delete host example.com' + c.example 'Delete the host example.com in your DigitalOcean console', 'ops delete example.com' c.action do |args, options| cli = DigitalOcean::client id = cli.find_droplet_by_name(args[0]).id resp = cli.droplets.delete id: id if resp.is_a?(TrueClass) \ No newline at end of file