doctl 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +32 -0
- data/Gemfile.lock +240 -0
- data/bin/doctl +39 -0
- data/doctl.gemspec +34 -0
- data/lib/dldinternet/doctl/account/command.rb +39 -0
- data/lib/dldinternet/doctl/account/mixins/no_commands.rb +12 -0
- data/lib/dldinternet/doctl/api/account.rb +2 -0
- data/lib/dldinternet/doctl/api/account/get.rb +18 -0
- data/lib/dldinternet/doctl/api/account/ratelimit.rb +22 -0
- data/lib/dldinternet/doctl/api/auth.rb +1 -0
- data/lib/dldinternet/doctl/api/auth/get.rb +16 -0
- data/lib/dldinternet/doctl/api/auth/mixins/get/getnameservers.rb +17 -0
- data/lib/dldinternet/doctl/api/base.rb +120 -0
- data/lib/dldinternet/doctl/api/compute.rb +1 -0
- data/lib/dldinternet/doctl/api/compute/domain.rb +6 -0
- data/lib/dldinternet/doctl/api/compute/domain/create.rb +29 -0
- data/lib/dldinternet/doctl/api/compute/domain/delete.rb +28 -0
- data/lib/dldinternet/doctl/api/compute/domain/get.rb +20 -0
- data/lib/dldinternet/doctl/api/compute/domain/list.rb +24 -0
- data/lib/dldinternet/doctl/api/compute/domain/records.rb +4 -0
- data/lib/dldinternet/doctl/api/compute/domain/records/create.rb +30 -0
- data/lib/dldinternet/doctl/api/compute/domain/records/delete.rb +30 -0
- data/lib/dldinternet/doctl/api/compute/domain/records/list.rb +33 -0
- data/lib/dldinternet/doctl/api/compute/domain/records/update.rb +30 -0
- data/lib/dldinternet/doctl/auth/command.rb +19 -0
- data/lib/dldinternet/doctl/auth/init/command.rb +18 -0
- data/lib/dldinternet/doctl/auth/init/mixins/no_commands.rb +16 -0
- data/lib/dldinternet/doctl/auth/mixins/no_commands.rb +12 -0
- data/lib/dldinternet/doctl/compute/action/command.rb +30 -0
- data/lib/dldinternet/doctl/compute/action/get/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/action/get/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/action/list/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/action/list/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/action/mixins/no_commands.rb +16 -0
- data/lib/dldinternet/doctl/compute/action/wait/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/action/wait/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/command.rb +81 -0
- data/lib/dldinternet/doctl/compute/domain/command.rb +105 -0
- data/lib/dldinternet/doctl/compute/domain/mixins/no_commands.rb +16 -0
- data/lib/dldinternet/doctl/compute/domain/records/command.rb +89 -0
- data/lib/dldinternet/doctl/compute/domain/records/mixins/no_commands.rb +62 -0
- data/lib/dldinternet/doctl/compute/droplet-action/change-kernel/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet-action/change-kernel/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet-action/command.rb +86 -0
- data/lib/dldinternet/doctl/compute/droplet-action/disable-backups/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet-action/disable-backups/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet-action/enable-ipv6/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet-action/enable-ipv6/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet-action/enable-private-networking/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet-action/enable-private-networking/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet-action/get/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet-action/get/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet-action/mixins/no_commands.rb +16 -0
- data/lib/dldinternet/doctl/compute/droplet-action/password-reset/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet-action/password-reset/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet-action/power-cycle/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet-action/power-cycle/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet-action/power-off/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet-action/power-off/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet-action/power-on/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet-action/power-on/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet-action/reboot/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet-action/reboot/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet-action/rebuild/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet-action/rebuild/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet-action/rename/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet-action/rename/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet-action/resize/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet-action/resize/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet-action/restore/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet-action/restore/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet-action/shutdown/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet-action/shutdown/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet-action/snapshot/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet-action/snapshot/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet-action/upgrade/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet-action/upgrade/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet/actions/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet/actions/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet/backups/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet/backups/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet/command.rb +62 -0
- data/lib/dldinternet/doctl/compute/droplet/create/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet/create/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet/delete/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet/delete/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet/get/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet/get/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet/kernels/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet/kernels/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet/list/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet/list/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet/mixins/no_commands.rb +16 -0
- data/lib/dldinternet/doctl/compute/droplet/neighbors/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet/neighbors/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet/snapshots/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet/snapshots/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet/tag/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet/tag/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/droplet/untag/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/droplet/untag/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/floating-ip-action/assign/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/floating-ip-action/assign/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/floating-ip-action/command.rb +30 -0
- data/lib/dldinternet/doctl/compute/floating-ip-action/get/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/floating-ip-action/get/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/floating-ip-action/mixins/no_commands.rb +16 -0
- data/lib/dldinternet/doctl/compute/floating-ip-action/unassign/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/floating-ip-action/unassign/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/floating-ip/command.rb +34 -0
- data/lib/dldinternet/doctl/compute/floating-ip/create/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/floating-ip/create/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/floating-ip/delete/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/floating-ip/delete/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/floating-ip/get/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/floating-ip/get/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/floating-ip/list/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/floating-ip/list/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/floating-ip/mixins/no_commands.rb +16 -0
- data/lib/dldinternet/doctl/compute/image-action/command.rb +26 -0
- data/lib/dldinternet/doctl/compute/image-action/get/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/image-action/get/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/image-action/mixins/no_commands.rb +16 -0
- data/lib/dldinternet/doctl/compute/image-action/transfer/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/image-action/transfer/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/image/command.rb +46 -0
- data/lib/dldinternet/doctl/compute/image/delete/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/image/delete/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/image/get/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/image/get/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/image/list-application/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/image/list-application/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/image/list-distribution/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/image/list-distribution/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/image/list-user/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/image/list-user/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/image/list/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/image/list/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/image/mixins/no_commands.rb +16 -0
- data/lib/dldinternet/doctl/compute/image/update/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/image/update/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/mixins/no_commands.rb +12 -0
- data/lib/dldinternet/doctl/compute/plugin/command.rb +26 -0
- data/lib/dldinternet/doctl/compute/plugin/list/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/plugin/list/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/plugin/mixins/no_commands.rb +16 -0
- data/lib/dldinternet/doctl/compute/plugin/run/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/plugin/run/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/region/command.rb +22 -0
- data/lib/dldinternet/doctl/compute/region/list/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/region/list/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/region/mixins/no_commands.rb +16 -0
- data/lib/dldinternet/doctl/compute/size/command.rb +22 -0
- data/lib/dldinternet/doctl/compute/size/list/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/size/list/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/size/mixins/no_commands.rb +16 -0
- data/lib/dldinternet/doctl/compute/ssh-key/command.rb +42 -0
- data/lib/dldinternet/doctl/compute/ssh-key/create/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/ssh-key/create/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/ssh-key/delete/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/ssh-key/delete/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/ssh-key/get/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/ssh-key/get/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/ssh-key/import/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/ssh-key/import/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/ssh-key/list/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/ssh-key/list/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/ssh-key/mixins/no_commands.rb +16 -0
- data/lib/dldinternet/doctl/compute/ssh-key/update/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/ssh-key/update/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/ssh/command.rb +18 -0
- data/lib/dldinternet/doctl/compute/ssh/mixins/no_commands.rb +16 -0
- data/lib/dldinternet/doctl/compute/tag/command.rb +38 -0
- data/lib/dldinternet/doctl/compute/tag/create/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/tag/create/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/tag/delete/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/tag/delete/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/tag/get/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/tag/get/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/tag/list/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/tag/list/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/tag/mixins/no_commands.rb +16 -0
- data/lib/dldinternet/doctl/compute/tag/update/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/tag/update/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/volume-action/attach/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/volume-action/attach/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/volume-action/command.rb +26 -0
- data/lib/dldinternet/doctl/compute/volume-action/detach/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/volume-action/detach/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/volume-action/mixins/no_commands.rb +16 -0
- data/lib/dldinternet/doctl/compute/volume/command.rb +34 -0
- data/lib/dldinternet/doctl/compute/volume/create/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/volume/create/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/volume/delete/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/volume/delete/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/volume/get/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/volume/get/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/volume/list/command.rb +20 -0
- data/lib/dldinternet/doctl/compute/volume/list/mixins/no_commands.rb +18 -0
- data/lib/dldinternet/doctl/compute/volume/mixins/no_commands.rb +16 -0
- data/lib/dldinternet/doctl/main.rb +35 -0
- data/lib/dldinternet/doctl/mixins/no_commands.rb +8 -0
- data/lib/dldinternet/doctl/version.rb +5 -0
- metadata +421 -0
@@ -0,0 +1,62 @@
|
|
1
|
+
module DLDInternet
|
2
|
+
module DOctl
|
3
|
+
module Compute
|
4
|
+
module Domain
|
5
|
+
module Records
|
6
|
+
module MixIns
|
7
|
+
module NoCommands
|
8
|
+
|
9
|
+
require 'dldinternet/doctl/compute/domain/mixins/no_commands'
|
10
|
+
include DLDInternet::DOctl::Compute::Domain::MixIns::NoCommands
|
11
|
+
|
12
|
+
def headers(command, obj)
|
13
|
+
@headers[command].call(obj)
|
14
|
+
end
|
15
|
+
|
16
|
+
def records_formats
|
17
|
+
formats = Hashie::Mash.new({
|
18
|
+
ID: [ :id, '%-16s', :to_s ],
|
19
|
+
Type: [ :type, '%-8s', :to_s ],
|
20
|
+
Name: [ :name, '%-24s', :to_s ],
|
21
|
+
Data: [ :data, '%-24s', :to_s ],
|
22
|
+
Priority: [ :priority, '%-24s', :to_i ],
|
23
|
+
Port: [ :port, '%-8s', :to_i ],
|
24
|
+
Weight: [ :weight, '%-8s', :to_i ],
|
25
|
+
})
|
26
|
+
format_names = options[:format_string].split(/,/)
|
27
|
+
format_templ = format_names.map { |name| formats[name][1] }.join('')
|
28
|
+
|
29
|
+
@header = -> { sprintf(format_templ, *format_names) }
|
30
|
+
@format = ->(o) {
|
31
|
+
sprintf(format_templ, *(format_names.map{ |n|
|
32
|
+
if o.respond_to?(formats[n][0])
|
33
|
+
o.send(formats[n][0]).send(formats[n][2])
|
34
|
+
else
|
35
|
+
$stderr.write "#{n} not in #{o.class.name}::#{hash_it(o)}\n"
|
36
|
+
''
|
37
|
+
end
|
38
|
+
})) }
|
39
|
+
end
|
40
|
+
|
41
|
+
def record_from_options
|
42
|
+
map = Hashie::Mash.new({
|
43
|
+
record_type: :type,
|
44
|
+
record_name: :name,
|
45
|
+
record_data: :data,
|
46
|
+
record_priority: :priority,
|
47
|
+
record_port: :port,
|
48
|
+
record_weight: :weight,
|
49
|
+
})
|
50
|
+
record = Hashie::Mash.new
|
51
|
+
options.each do |k,v|
|
52
|
+
record[map[k]] = v if map.has_key?(k)
|
53
|
+
end
|
54
|
+
record
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'dldinternet/doctl/api/compute'
|
2
|
+
|
3
|
+
module DLDInternet
|
4
|
+
module DOctl
|
5
|
+
module Compute
|
6
|
+
module DropletAction
|
7
|
+
module ChangeKernel
|
8
|
+
class Command < DLDInternet::Thor::Command
|
9
|
+
no_commands do
|
10
|
+
|
11
|
+
require 'dldinternet/doctl/compute/droplet-action/change-kernel/mixins/no_commands'
|
12
|
+
include DLDInternet::DOctl::Compute::DropletAction::ChangeKernel::MixIns::NoCommands
|
13
|
+
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module DLDInternet
|
2
|
+
module DOctl
|
3
|
+
module Compute
|
4
|
+
module DropletAction
|
5
|
+
module ChangeKernel
|
6
|
+
module MixIns
|
7
|
+
module NoCommands
|
8
|
+
|
9
|
+
require 'dldinternet/doctl/compute/droplet-action/mixins/no_commands'
|
10
|
+
include DLDInternet::DOctl::Compute::DropletAction::MixIns::NoCommands
|
11
|
+
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,86 @@
|
|
1
|
+
require 'dldinternet/doctl/api/compute'
|
2
|
+
require 'dldinternet/doctl/compute/droplet-action/get/command'
|
3
|
+
require 'dldinternet/doctl/compute/droplet-action/disable-backups/command'
|
4
|
+
require 'dldinternet/doctl/compute/droplet-action/reboot/command'
|
5
|
+
require 'dldinternet/doctl/compute/droplet-action/power-cycle/command'
|
6
|
+
require 'dldinternet/doctl/compute/droplet-action/shutdown/command'
|
7
|
+
require 'dldinternet/doctl/compute/droplet-action/power-off/command'
|
8
|
+
require 'dldinternet/doctl/compute/droplet-action/power-on/command'
|
9
|
+
require 'dldinternet/doctl/compute/droplet-action/password-reset/command'
|
10
|
+
require 'dldinternet/doctl/compute/droplet-action/enable-ipv6/command'
|
11
|
+
require 'dldinternet/doctl/compute/droplet-action/enable-private-networking/command'
|
12
|
+
require 'dldinternet/doctl/compute/droplet-action/upgrade/command'
|
13
|
+
require 'dldinternet/doctl/compute/droplet-action/restore/command'
|
14
|
+
require 'dldinternet/doctl/compute/droplet-action/resize/command'
|
15
|
+
require 'dldinternet/doctl/compute/droplet-action/rebuild/command'
|
16
|
+
require 'dldinternet/doctl/compute/droplet-action/rename/command'
|
17
|
+
require 'dldinternet/doctl/compute/droplet-action/change-kernel/command'
|
18
|
+
require 'dldinternet/doctl/compute/droplet-action/snapshot/command'
|
19
|
+
|
20
|
+
module DLDInternet
|
21
|
+
module DOctl
|
22
|
+
module Compute
|
23
|
+
module DropletAction
|
24
|
+
class Command < DLDInternet::Thor::Command
|
25
|
+
no_commands do
|
26
|
+
|
27
|
+
require 'dldinternet/doctl/compute/droplet-action/mixins/no_commands'
|
28
|
+
include DLDInternet::DOctl::Compute::DropletAction::MixIns::NoCommands
|
29
|
+
|
30
|
+
end
|
31
|
+
|
32
|
+
desc 'get SUBCOMMAND ... ARGS', 'get droplet action'
|
33
|
+
subcommand 'get', ::DLDInternet::DOctl::Compute::DropletAction::Get::Command
|
34
|
+
|
35
|
+
desc 'disable-backups SUBCOMMAND ... ARGS', 'disable backups'
|
36
|
+
subcommand 'disable-backups', ::DLDInternet::DOctl::Compute::DropletAction::DisableBackups::Command
|
37
|
+
|
38
|
+
desc 'reboot SUBCOMMAND ... ARGS', 'reboot droplet'
|
39
|
+
subcommand 'reboot', ::DLDInternet::DOctl::Compute::DropletAction::Reboot::Command
|
40
|
+
|
41
|
+
desc 'power-cycle SUBCOMMAND ... ARGS', 'power cycle droplet'
|
42
|
+
subcommand 'power-cycle', ::DLDInternet::DOctl::Compute::DropletAction::PowerCycle::Command
|
43
|
+
|
44
|
+
desc 'shutdown SUBCOMMAND ... ARGS', 'shutdown droplet'
|
45
|
+
subcommand 'shutdown', ::DLDInternet::DOctl::Compute::DropletAction::Shutdown::Command
|
46
|
+
|
47
|
+
desc 'power-off SUBCOMMAND ... ARGS', 'power off droplet'
|
48
|
+
subcommand 'power-off', ::DLDInternet::DOctl::Compute::DropletAction::PowerOff::Command
|
49
|
+
|
50
|
+
desc 'power-on SUBCOMMAND ... ARGS', 'power on droplet'
|
51
|
+
subcommand 'power-on', ::DLDInternet::DOctl::Compute::DropletAction::PowerOn::Command
|
52
|
+
|
53
|
+
desc 'password-reset SUBCOMMAND ... ARGS', 'password reset droplet'
|
54
|
+
subcommand 'password-reset', ::DLDInternet::DOctl::Compute::DropletAction::PasswordReset::Command
|
55
|
+
|
56
|
+
desc 'enable-ipv6 SUBCOMMAND ... ARGS', 'enable ipv6'
|
57
|
+
subcommand 'enable-ipv6', ::DLDInternet::DOctl::Compute::DropletAction::EnableIpv6::Command
|
58
|
+
|
59
|
+
desc 'enable-private-networking SUBCOMMAND ... ARGS', 'enable private networking'
|
60
|
+
subcommand 'enable-private-networking', ::DLDInternet::DOctl::Compute::DropletAction::EnablePrivateNetworking::Command
|
61
|
+
|
62
|
+
desc 'upgrade SUBCOMMAND ... ARGS', 'upgrade droplet'
|
63
|
+
subcommand 'upgrade', ::DLDInternet::DOctl::Compute::DropletAction::Upgrade::Command
|
64
|
+
|
65
|
+
desc 'restore SUBCOMMAND ... ARGS', 'restore backup'
|
66
|
+
subcommand 'restore', ::DLDInternet::DOctl::Compute::DropletAction::Restore::Command
|
67
|
+
|
68
|
+
desc 'resize SUBCOMMAND ... ARGS', 'resize droplet'
|
69
|
+
subcommand 'resize', ::DLDInternet::DOctl::Compute::DropletAction::Resize::Command
|
70
|
+
|
71
|
+
desc 'rebuild SUBCOMMAND ... ARGS', 'rebuild droplet'
|
72
|
+
subcommand 'rebuild', ::DLDInternet::DOctl::Compute::DropletAction::Rebuild::Command
|
73
|
+
|
74
|
+
desc 'rename SUBCOMMAND ... ARGS', 'rename droplet'
|
75
|
+
subcommand 'rename', ::DLDInternet::DOctl::Compute::DropletAction::Rename::Command
|
76
|
+
|
77
|
+
desc 'change-kernel SUBCOMMAND ... ARGS', 'change kernel'
|
78
|
+
subcommand 'change-kernel', ::DLDInternet::DOctl::Compute::DropletAction::ChangeKernel::Command
|
79
|
+
|
80
|
+
desc 'snapshot SUBCOMMAND ... ARGS', 'snapshot droplet'
|
81
|
+
subcommand 'snapshot', ::DLDInternet::DOctl::Compute::DropletAction::Snapshot::Command
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'dldinternet/doctl/api/compute'
|
2
|
+
|
3
|
+
module DLDInternet
|
4
|
+
module DOctl
|
5
|
+
module Compute
|
6
|
+
module DropletAction
|
7
|
+
module DisableBackups
|
8
|
+
class Command < DLDInternet::Thor::Command
|
9
|
+
no_commands do
|
10
|
+
|
11
|
+
require 'dldinternet/doctl/compute/droplet-action/disable-backups/mixins/no_commands'
|
12
|
+
include DLDInternet::DOctl::Compute::DropletAction::DisableBackups::MixIns::NoCommands
|
13
|
+
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module DLDInternet
|
2
|
+
module DOctl
|
3
|
+
module Compute
|
4
|
+
module DropletAction
|
5
|
+
module DisableBackups
|
6
|
+
module MixIns
|
7
|
+
module NoCommands
|
8
|
+
|
9
|
+
require 'dldinternet/doctl/compute/droplet-action/mixins/no_commands'
|
10
|
+
include DLDInternet::DOctl::Compute::DropletAction::MixIns::NoCommands
|
11
|
+
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'dldinternet/doctl/api/compute'
|
2
|
+
|
3
|
+
module DLDInternet
|
4
|
+
module DOctl
|
5
|
+
module Compute
|
6
|
+
module DropletAction
|
7
|
+
module EnableIpv6
|
8
|
+
class Command < DLDInternet::Thor::Command
|
9
|
+
no_commands do
|
10
|
+
|
11
|
+
require 'dldinternet/doctl/compute/droplet-action/enable-ipv6/mixins/no_commands'
|
12
|
+
include DLDInternet::DOctl::Compute::DropletAction::EnableIpv6::MixIns::NoCommands
|
13
|
+
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module DLDInternet
|
2
|
+
module DOctl
|
3
|
+
module Compute
|
4
|
+
module DropletAction
|
5
|
+
module EnableIpv6
|
6
|
+
module MixIns
|
7
|
+
module NoCommands
|
8
|
+
|
9
|
+
require 'dldinternet/doctl/compute/droplet-action/mixins/no_commands'
|
10
|
+
include DLDInternet::DOctl::Compute::DropletAction::MixIns::NoCommands
|
11
|
+
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'dldinternet/doctl/api/compute'
|
2
|
+
|
3
|
+
module DLDInternet
|
4
|
+
module DOctl
|
5
|
+
module Compute
|
6
|
+
module DropletAction
|
7
|
+
module EnablePrivateNetworking
|
8
|
+
class Command < DLDInternet::Thor::Command
|
9
|
+
no_commands do
|
10
|
+
|
11
|
+
require 'dldinternet/doctl/compute/droplet-action/enable-private-networking/mixins/no_commands'
|
12
|
+
include DLDInternet::DOctl::Compute::DropletAction::EnablePrivateNetworking::MixIns::NoCommands
|
13
|
+
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/dldinternet/doctl/compute/droplet-action/enable-private-networking/mixins/no_commands.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
module DLDInternet
|
2
|
+
module DOctl
|
3
|
+
module Compute
|
4
|
+
module DropletAction
|
5
|
+
module EnablePrivateNetworking
|
6
|
+
module MixIns
|
7
|
+
module NoCommands
|
8
|
+
|
9
|
+
require 'dldinternet/doctl/compute/droplet-action/mixins/no_commands'
|
10
|
+
include DLDInternet::DOctl::Compute::DropletAction::MixIns::NoCommands
|
11
|
+
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'dldinternet/doctl/api/compute'
|
2
|
+
|
3
|
+
module DLDInternet
|
4
|
+
module DOctl
|
5
|
+
module Compute
|
6
|
+
module DropletAction
|
7
|
+
module Get
|
8
|
+
class Command < DLDInternet::Thor::Command
|
9
|
+
no_commands do
|
10
|
+
|
11
|
+
require 'dldinternet/doctl/compute/droplet-action/get/mixins/no_commands'
|
12
|
+
include DLDInternet::DOctl::Compute::DropletAction::Get::MixIns::NoCommands
|
13
|
+
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module DLDInternet
|
2
|
+
module DOctl
|
3
|
+
module Compute
|
4
|
+
module DropletAction
|
5
|
+
module Get
|
6
|
+
module MixIns
|
7
|
+
module NoCommands
|
8
|
+
|
9
|
+
require 'dldinternet/doctl/compute/droplet-action/mixins/no_commands'
|
10
|
+
include DLDInternet::DOctl::Compute::DropletAction::MixIns::NoCommands
|
11
|
+
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module DLDInternet
|
2
|
+
module DOctl
|
3
|
+
module Compute
|
4
|
+
module DropletAction
|
5
|
+
module MixIns
|
6
|
+
module NoCommands
|
7
|
+
|
8
|
+
require 'dldinternet/doctl/compute/mixins/no_commands'
|
9
|
+
include DLDInternet::DOctl::Compute::MixIns::NoCommands
|
10
|
+
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'dldinternet/doctl/api/compute'
|
2
|
+
|
3
|
+
module DLDInternet
|
4
|
+
module DOctl
|
5
|
+
module Compute
|
6
|
+
module DropletAction
|
7
|
+
module PasswordReset
|
8
|
+
class Command < DLDInternet::Thor::Command
|
9
|
+
no_commands do
|
10
|
+
|
11
|
+
require 'dldinternet/doctl/compute/droplet-action/password-reset/mixins/no_commands'
|
12
|
+
include DLDInternet::DOctl::Compute::DropletAction::PasswordReset::MixIns::NoCommands
|
13
|
+
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module DLDInternet
|
2
|
+
module DOctl
|
3
|
+
module Compute
|
4
|
+
module DropletAction
|
5
|
+
module PasswordReset
|
6
|
+
module MixIns
|
7
|
+
module NoCommands
|
8
|
+
|
9
|
+
require 'dldinternet/doctl/compute/droplet-action/mixins/no_commands'
|
10
|
+
include DLDInternet::DOctl::Compute::DropletAction::MixIns::NoCommands
|
11
|
+
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'dldinternet/doctl/api/compute'
|
2
|
+
|
3
|
+
module DLDInternet
|
4
|
+
module DOctl
|
5
|
+
module Compute
|
6
|
+
module DropletAction
|
7
|
+
module PowerCycle
|
8
|
+
class Command < DLDInternet::Thor::Command
|
9
|
+
no_commands do
|
10
|
+
|
11
|
+
require 'dldinternet/doctl/compute/droplet-action/power-cycle/mixins/no_commands'
|
12
|
+
include DLDInternet::DOctl::Compute::DropletAction::PowerCycle::MixIns::NoCommands
|
13
|
+
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module DLDInternet
|
2
|
+
module DOctl
|
3
|
+
module Compute
|
4
|
+
module DropletAction
|
5
|
+
module PowerCycle
|
6
|
+
module MixIns
|
7
|
+
module NoCommands
|
8
|
+
|
9
|
+
require 'dldinternet/doctl/compute/droplet-action/mixins/no_commands'
|
10
|
+
include DLDInternet::DOctl::Compute::DropletAction::MixIns::NoCommands
|
11
|
+
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|