Sha256: 77ad46e4d2a820ff5458d18df8808627635c1bc62b5bf64e9de1c8ae70c0e1ef

Contents?: true

Size: 658 Bytes

Versions: 20

Compression:

Stored size: 658 Bytes

Contents

command :create do |c|
  c.summary = 'Create a droplet/host in your provider account'
  c.syntax = 'ops create [DNS_name]'
  c.description = "Creates the host described in the file #{Ops::HOSTS_DIR}/[DNS_name].yml"
  c.example "Create the host example.com in your DigitalOcean console. This is described in '#{Ops::HOSTS_DIR}/example.com.yml' like:\n    #      size:     512mb\n    #      region:   ams1\n    #      image:    coreos-stable\n    #      ssh_keys:\n    #        - e7:51:47:bc:7f:dc:2f:3c:56:65:28:e1:10:9c:88:57  xx:xx:xx:xx:xx:xx:xx", 'ops create example.com'
  c.action do |args, options|
    host = Host.new args[0]
    host.create
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

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