Sha256: a9fe57254ca0fea310c472ea132f318eaa2491256a4fc5b8c87e6b974a89f797

Contents?: true

Size: 439 Bytes

Versions: 20

Compression:

Stored size: 439 Bytes

Contents

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 example.com'
  c.action do |args, options|
    host = Host.new args[0]
    host.delete
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
open-dock-0.1.18 lib/open-dock/commands/delete_host.rb
open-dock-0.1.17 lib/open-dock/commands/delete_host.rb
open-dock-0.1.16 lib/open-dock/commands/delete_host.rb
open-dock-0.1.15 lib/open-dock/commands/delete_host.rb
open-dock-0.1.14 lib/open-dock/commands/delete_host.rb
open-dock-0.1.13 lib/open-dock/commands/delete_host.rb
open-dock-0.1.11 lib/open-dock/commands/delete_host.rb
open-dock-0.1.10 lib/open-dock/commands/delete_host.rb
open-dock-0.1.9 lib/open-dock/commands/delete_host.rb
open-dock-0.1.8 lib/open-dock/commands/delete_host.rb
open-dock-0.1.7 lib/open-dock/commands/delete_host.rb
open-dock-0.1.6 lib/open-dock/commands/delete_host.rb
open-dock-0.1.5 lib/open-dock/commands/delete_host.rb
open-dock-0.1.3 lib/open-dock/commands/delete_host.rb
open-dock-0.1.2 lib/open-dock/commands/delete_host.rb
open-dock-0.1.1 lib/open-dock/commands/delete_host.rb
open-dock-0.1.0 lib/open-dock/commands/delete_host.rb
open-dock-0.0.15 lib/open-dock/commands/delete_host.rb
open-dock-0.0.14 lib/open-dock/commands/delete_host.rb
open-dock-0.0.13 lib/open-dock/commands/delete_host.rb