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
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 53be049376d5b3d8335db163bdcbd43c1254a7a7
|
4
|
+
data.tar.gz: 9ea38cde40bab42795cac3684dc8386ffc2c5d6e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b2a82727a208ae2d9c4fc9d72572546498d3607b0b678c8e02b11a26532789da87c7e9552729b70eaefc8ea666ff17e0438d25d85dd0594ca566e621fa2d6eb2
|
7
|
+
data.tar.gz: 85d5073ecbca52159a1138cece3a04d77abc8a80e6553b4ef30e5b61d33f90d09ee32d3ec9d1f751b8b67ae76bb41bf190fc07965a4791d53aa49782dcf3c3ae
|
data/Gemfile
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
source 'https://rubygems.org' do
|
2
|
+
|
3
|
+
gem 'roodi'
|
4
|
+
gem 'rubocop', require: false
|
5
|
+
gem 'rubocop-rspec', require: false
|
6
|
+
gem 'rubycritic', '>= 2.9.2', :require => false
|
7
|
+
gem 'flog', '>= 4.4.0', :require => false
|
8
|
+
|
9
|
+
group :development, :test, :integration do
|
10
|
+
gem 'heckle', :require => false
|
11
|
+
|
12
|
+
gem 'pry'
|
13
|
+
gem 'hoe'
|
14
|
+
|
15
|
+
gem 'rspec'
|
16
|
+
gem 'simplecov'
|
17
|
+
gem 'guard'
|
18
|
+
gem 'guard-rubocop'
|
19
|
+
|
20
|
+
gem 'builder'
|
21
|
+
gem 'bundler'
|
22
|
+
gem 'rake'
|
23
|
+
gem 'rubygems-tasks'
|
24
|
+
|
25
|
+
gem 'mixlib-shellout'
|
26
|
+
|
27
|
+
gem 'dldinternet-mixlib-thor', :path => '../../ws/gems-ws/dldinternet-mixlib-thor', :group => :development
|
28
|
+
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
gemspec
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,240 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../../ws/gems-ws/dldinternet-mixlib-thor
|
3
|
+
specs:
|
4
|
+
dldinternet-mixlib-thor (0.2.0)
|
5
|
+
awesome_print
|
6
|
+
command_line_reporter (~> 3.3, >= 3.3.6)
|
7
|
+
dldinternet-mixlib-logging (~> 0.5)
|
8
|
+
hashie
|
9
|
+
inifile
|
10
|
+
paint-shortcuts
|
11
|
+
thor (~> 0.19, >= 0)
|
12
|
+
|
13
|
+
PATH
|
14
|
+
remote: .
|
15
|
+
specs:
|
16
|
+
doctl (0.4.2)
|
17
|
+
awesome_print (> 0)
|
18
|
+
command_line_reporter (~> 3.3, >= 3.3.6)
|
19
|
+
dldinternet-mixlib-logging (>= 0.7.0)
|
20
|
+
dldinternet-mixlib-thor (>= 0.2.0)
|
21
|
+
droplet_kit (>= 0.3)
|
22
|
+
hashie
|
23
|
+
nokogiri
|
24
|
+
paint-shortcuts
|
25
|
+
thor (>= 0.19.4)
|
26
|
+
|
27
|
+
GEM
|
28
|
+
remote: https://rubygems.org/
|
29
|
+
specs:
|
30
|
+
ParseTree (3.0.8)
|
31
|
+
RubyInline (>= 3.7.0)
|
32
|
+
sexp_processor (>= 3.0.0)
|
33
|
+
RubyInline (3.12.4)
|
34
|
+
ZenTest (~> 4.3)
|
35
|
+
ZenTest (4.11.1)
|
36
|
+
activesupport (5.0.2)
|
37
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
38
|
+
i18n (~> 0.7)
|
39
|
+
minitest (~> 5.1)
|
40
|
+
tzinfo (~> 1.1)
|
41
|
+
addressable (2.5.0)
|
42
|
+
public_suffix (~> 2.0, >= 2.0.2)
|
43
|
+
ast (2.3.0)
|
44
|
+
awesome_print (1.7.0)
|
45
|
+
axiom-types (0.1.1)
|
46
|
+
descendants_tracker (~> 0.0.4)
|
47
|
+
ice_nine (~> 0.11.0)
|
48
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
49
|
+
builder (3.2.3)
|
50
|
+
codeclimate-engine-rb (0.4.0)
|
51
|
+
virtus (~> 1.0)
|
52
|
+
coderay (1.1.1)
|
53
|
+
coercible (1.0.0)
|
54
|
+
descendants_tracker (~> 0.0.1)
|
55
|
+
colored (1.2)
|
56
|
+
command_line_reporter (3.3.6)
|
57
|
+
colored (>= 1.2)
|
58
|
+
concurrent-ruby (1.0.5)
|
59
|
+
descendants_tracker (0.0.4)
|
60
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
61
|
+
diff-lcs (1.3)
|
62
|
+
dldinternet-mixlib-logging (0.7.0)
|
63
|
+
logging (~> 2.1, >= 2.1.0)
|
64
|
+
docile (1.1.5)
|
65
|
+
droplet_kit (2.1.0)
|
66
|
+
activesupport (> 3.0, < 5.1)
|
67
|
+
faraday (~> 0.9.1)
|
68
|
+
kartograph (~> 0.2.3)
|
69
|
+
resource_kit (~> 0.1.5)
|
70
|
+
virtus (~> 1.0.3)
|
71
|
+
equalizer (0.0.11)
|
72
|
+
erubis (2.7.0)
|
73
|
+
faraday (0.9.2)
|
74
|
+
multipart-post (>= 1.2, < 3)
|
75
|
+
ffi (1.9.18)
|
76
|
+
flay (2.8.1)
|
77
|
+
erubis (~> 2.7.0)
|
78
|
+
path_expander (~> 1.0)
|
79
|
+
ruby_parser (~> 3.0)
|
80
|
+
sexp_processor (~> 4.0)
|
81
|
+
flog (4.6.1)
|
82
|
+
path_expander (~> 1.0)
|
83
|
+
ruby_parser (~> 3.1, > 3.1.0)
|
84
|
+
sexp_processor (~> 4.8)
|
85
|
+
formatador (0.2.5)
|
86
|
+
guard (2.14.1)
|
87
|
+
formatador (>= 0.2.4)
|
88
|
+
listen (>= 2.7, < 4.0)
|
89
|
+
lumberjack (~> 1.0)
|
90
|
+
nenv (~> 0.1)
|
91
|
+
notiffany (~> 0.0)
|
92
|
+
pry (>= 0.9.12)
|
93
|
+
shellany (~> 0.0)
|
94
|
+
thor (>= 0.18.1)
|
95
|
+
guard-rubocop (1.2.0)
|
96
|
+
guard (~> 2.0)
|
97
|
+
rubocop (~> 0.20)
|
98
|
+
hashie (3.5.5)
|
99
|
+
heckle (1.4.3)
|
100
|
+
ParseTree (>= 2.0.0)
|
101
|
+
ZenTest (>= 3.5.2)
|
102
|
+
ruby2ruby (>= 1.1.6)
|
103
|
+
hoe (3.16.0)
|
104
|
+
rake (>= 0.8, < 13.0)
|
105
|
+
i18n (0.8.1)
|
106
|
+
ice_nine (0.11.2)
|
107
|
+
inifile (3.0.0)
|
108
|
+
json (2.0.3)
|
109
|
+
kartograph (0.2.4)
|
110
|
+
launchy (2.4.3)
|
111
|
+
addressable (~> 2.3)
|
112
|
+
listen (3.1.5)
|
113
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
114
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
115
|
+
ruby_dep (~> 1.2)
|
116
|
+
little-plugger (1.1.4)
|
117
|
+
logging (2.2.0)
|
118
|
+
little-plugger (~> 1.1)
|
119
|
+
multi_json (~> 1.10)
|
120
|
+
lumberjack (1.0.11)
|
121
|
+
method_source (0.8.2)
|
122
|
+
mini_portile2 (2.1.0)
|
123
|
+
minitest (5.10.1)
|
124
|
+
mixlib-shellout (2.2.7)
|
125
|
+
multi_json (1.12.1)
|
126
|
+
multipart-post (2.0.0)
|
127
|
+
nenv (0.3.0)
|
128
|
+
nokogiri (1.7.1)
|
129
|
+
mini_portile2 (~> 2.1.0)
|
130
|
+
notiffany (0.1.1)
|
131
|
+
nenv (~> 0.1)
|
132
|
+
shellany (~> 0.0)
|
133
|
+
paint (2.0.0)
|
134
|
+
paint-shortcuts (2.0.0)
|
135
|
+
paint (>= 1.0, < 3.0)
|
136
|
+
parser (2.3.3.1)
|
137
|
+
ast (~> 2.2)
|
138
|
+
path_expander (1.0.1)
|
139
|
+
powerpack (0.1.1)
|
140
|
+
pry (0.10.4)
|
141
|
+
coderay (~> 1.1.0)
|
142
|
+
method_source (~> 0.8.1)
|
143
|
+
slop (~> 3.4)
|
144
|
+
public_suffix (2.0.5)
|
145
|
+
rainbow (2.2.1)
|
146
|
+
rake (12.0.0)
|
147
|
+
rb-fsevent (0.9.8)
|
148
|
+
rb-inotify (0.9.8)
|
149
|
+
ffi (>= 0.5.0)
|
150
|
+
reek (4.5.6)
|
151
|
+
codeclimate-engine-rb (~> 0.4.0)
|
152
|
+
parser (>= 2.3.1.2, < 2.5)
|
153
|
+
rainbow (~> 2.0)
|
154
|
+
resource_kit (0.1.6)
|
155
|
+
addressable (>= 2.3.6, < 3.0.0)
|
156
|
+
roodi (5.0.0)
|
157
|
+
ruby_parser (~> 3.2, >= 3.2.2)
|
158
|
+
rspec (3.5.0)
|
159
|
+
rspec-core (~> 3.5.0)
|
160
|
+
rspec-expectations (~> 3.5.0)
|
161
|
+
rspec-mocks (~> 3.5.0)
|
162
|
+
rspec-core (3.5.4)
|
163
|
+
rspec-support (~> 3.5.0)
|
164
|
+
rspec-expectations (3.5.0)
|
165
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
166
|
+
rspec-support (~> 3.5.0)
|
167
|
+
rspec-mocks (3.5.0)
|
168
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
169
|
+
rspec-support (~> 3.5.0)
|
170
|
+
rspec-support (3.5.0)
|
171
|
+
rubocop (0.47.1)
|
172
|
+
parser (>= 2.3.3.1, < 3.0)
|
173
|
+
powerpack (~> 0.1)
|
174
|
+
rainbow (>= 1.99.1, < 3.0)
|
175
|
+
ruby-progressbar (~> 1.7)
|
176
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
177
|
+
rubocop-rspec (1.13.0)
|
178
|
+
rubocop (>= 0.42.0)
|
179
|
+
ruby-progressbar (1.8.1)
|
180
|
+
ruby2ruby (2.3.2)
|
181
|
+
ruby_parser (~> 3.1)
|
182
|
+
sexp_processor (~> 4.6)
|
183
|
+
ruby_dep (1.5.0)
|
184
|
+
ruby_parser (3.8.4)
|
185
|
+
sexp_processor (~> 4.1)
|
186
|
+
rubycritic (3.1.3)
|
187
|
+
flay (~> 2.8)
|
188
|
+
flog (~> 4.4)
|
189
|
+
launchy (= 2.4.3)
|
190
|
+
parser (= 2.3.3.1)
|
191
|
+
rainbow (~> 2.1)
|
192
|
+
reek (~> 4.4)
|
193
|
+
ruby_parser (~> 3.8)
|
194
|
+
virtus (~> 1.0)
|
195
|
+
rubygems-tasks (0.2.4)
|
196
|
+
sexp_processor (4.8.0)
|
197
|
+
shellany (0.0.1)
|
198
|
+
simplecov (0.14.1)
|
199
|
+
docile (~> 1.1.0)
|
200
|
+
json (>= 1.8, < 3)
|
201
|
+
simplecov-html (~> 0.10.0)
|
202
|
+
simplecov-html (0.10.0)
|
203
|
+
slop (3.6.0)
|
204
|
+
thor (0.19.4)
|
205
|
+
thread_safe (0.3.6)
|
206
|
+
tzinfo (1.2.2)
|
207
|
+
thread_safe (~> 0.1)
|
208
|
+
unicode-display_width (1.1.3)
|
209
|
+
virtus (1.0.5)
|
210
|
+
axiom-types (~> 0.1)
|
211
|
+
coercible (~> 1.0)
|
212
|
+
descendants_tracker (~> 0.0, >= 0.0.3)
|
213
|
+
equalizer (~> 0.0, >= 0.0.9)
|
214
|
+
|
215
|
+
PLATFORMS
|
216
|
+
ruby
|
217
|
+
|
218
|
+
DEPENDENCIES
|
219
|
+
builder!
|
220
|
+
bundler!
|
221
|
+
dldinternet-mixlib-thor!
|
222
|
+
doctl!
|
223
|
+
flog (>= 4.4.0)!
|
224
|
+
guard!
|
225
|
+
guard-rubocop!
|
226
|
+
heckle!
|
227
|
+
hoe!
|
228
|
+
mixlib-shellout!
|
229
|
+
pry!
|
230
|
+
rake!
|
231
|
+
roodi!
|
232
|
+
rspec!
|
233
|
+
rubocop!
|
234
|
+
rubocop-rspec!
|
235
|
+
rubycritic (>= 2.9.2)!
|
236
|
+
rubygems-tasks!
|
237
|
+
simplecov!
|
238
|
+
|
239
|
+
BUNDLED WITH
|
240
|
+
1.14.6
|
data/bin/doctl
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
|
5
|
+
path = File.dirname(__FILE__)
|
6
|
+
if File.exists?("#{path}/../.gitignore")
|
7
|
+
%w(dldinternet-mixlib-logging dldinternet-mixlib-thor).each do |mod|
|
8
|
+
add_path = File.expand_path(File.join(path, "../../../ws/gems-ws/#{mod}", "lib"))
|
9
|
+
$:.unshift(add_path)
|
10
|
+
end
|
11
|
+
else
|
12
|
+
# Borrowing from "whiches" gem ...
|
13
|
+
cmd = File.basename(__FILE__, '.rb')
|
14
|
+
exes = []
|
15
|
+
exts = ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : ['']
|
16
|
+
ENV['PATH'].split(File::PATH_SEPARATOR).each do |pth|
|
17
|
+
exts.each { |ext|
|
18
|
+
exe = File.join(pth, "#{cmd}#{ext}")
|
19
|
+
exes << exe if File.executable? exe
|
20
|
+
}
|
21
|
+
end
|
22
|
+
if exes.size > 0
|
23
|
+
path = File.dirname(exes[0])
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
add_path = File.expand_path(File.join(path, "..", "lib"))
|
28
|
+
$:.unshift(add_path)
|
29
|
+
|
30
|
+
require 'dldinternet/doctl/main'
|
31
|
+
|
32
|
+
# =====================================================================================================================
|
33
|
+
rc = DLDInternet::DOctl::Main.start(ARGV)
|
34
|
+
if rc.is_a?(Fixnum)
|
35
|
+
exit rc
|
36
|
+
else
|
37
|
+
puts "$? == #{rc.ai} (#{rc.class.name})"
|
38
|
+
exit 0
|
39
|
+
end
|
data/doctl.gemspec
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
require File.expand_path('lib/dldinternet/doctl/version', File.dirname(__FILE__))
|
4
|
+
|
5
|
+
Gem::Specification.new do |gem|
|
6
|
+
gem.name = 'doctl'
|
7
|
+
gem.version = DLDInternet::DOctl::VERSION
|
8
|
+
gem.summary = %q{DLDInternet DOctl tools}
|
9
|
+
gem.description = %q{DLDInternet DOctl tools}
|
10
|
+
gem.license = 'Apachev2'
|
11
|
+
gem.authors = ['Christo De Lange']
|
12
|
+
gem.email = 'rubygems@dldinternet.com'
|
13
|
+
gem.homepage = 'https://rubygems.org/gems/doctl'
|
14
|
+
|
15
|
+
gem.files = `git ls-files`.split($/)
|
16
|
+
gem.files = gem.files.select{|f| not f.match(%r'(spec|tests?|features?)/') and f.match(%r'(\.rb$|\.gemspec|bin/|Gemfile)') }
|
17
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
18
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
19
|
+
gem.require_paths = ['lib']
|
20
|
+
|
21
|
+
gem.add_dependency 'hashie', '>= 0'
|
22
|
+
gem.add_dependency 'nokogiri', '>= 0'
|
23
|
+
gem.add_dependency 'paint-shortcuts', '>= 0'
|
24
|
+
gem.add_dependency 'droplet_kit', '>= 0.3'
|
25
|
+
gem.add_dependency 'thor', '>= 0.19.4'
|
26
|
+
gem.add_dependency 'awesome_print', '> 0'
|
27
|
+
gem.add_dependency 'dldinternet-mixlib-logging', '>= 0.7.0'
|
28
|
+
gem.add_dependency 'dldinternet-mixlib-thor', '>= 0.2.0'
|
29
|
+
gem.add_dependency 'command_line_reporter', '~> 3.3', '>= 3.3.6'
|
30
|
+
|
31
|
+
gem.add_development_dependency 'bundler', '~> 1.0'
|
32
|
+
gem.add_development_dependency 'rake', '~> 0.8'
|
33
|
+
gem.add_development_dependency 'rubygems-tasks', '~> 0.2'
|
34
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'dldinternet/doctl/api/account'
|
2
|
+
|
3
|
+
module DLDInternet
|
4
|
+
module DOctl
|
5
|
+
module Account
|
6
|
+
class Command < DLDInternet::Thor::Command
|
7
|
+
no_commands do
|
8
|
+
|
9
|
+
require 'dldinternet/doctl/account/mixins/no_commands'
|
10
|
+
include DLDInternet::DOctl::Account::MixIns::NoCommands
|
11
|
+
|
12
|
+
end
|
13
|
+
|
14
|
+
desc 'get', 'get account'
|
15
|
+
def get()
|
16
|
+
command_pre
|
17
|
+
@header = ->{ sprintf('%-30s%-14s%-16s%-52s%s', 'Email','Droplet Limit','Email Verified', 'UUID', 'Status') }
|
18
|
+
@format = ->(res) { sprintf('%-30s%-14s%-16s%-52s%s', res['email'], res['droplet_limit'], res['email_verified'], res['uuid'], res['status'] ) }
|
19
|
+
res = DLDInternet::DOctl::API::Account::Get.new(options, @logger).GetAccount()
|
20
|
+
command_out(res)
|
21
|
+
0
|
22
|
+
end
|
23
|
+
=begin
|
24
|
+
Limit Remaining Reset
|
25
|
+
5000 4980 2017-03-08 17:13:06 -0500 EST
|
26
|
+
=end
|
27
|
+
desc 'ratelimit', 'get API rate limits'
|
28
|
+
def ratelimit()
|
29
|
+
command_pre
|
30
|
+
@header = -> { sprintf('%-7s%-10s%s', 'Limit','Remaining', 'Reset') }
|
31
|
+
@format = ->(res) { sprintf('%-7s%-10s%s', res['ratelimit-limit'], res['ratelimit-remaining'], res['ratelimit-reset'] ) }
|
32
|
+
res = DLDInternet::DOctl::API::Account::Ratelimit.new(options, @logger).GetRatelimit()
|
33
|
+
command_out(res)
|
34
|
+
0
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'dldinternet/doctl/api/base'
|
2
|
+
|
3
|
+
module DLDInternet
|
4
|
+
module DOctl
|
5
|
+
module API
|
6
|
+
module Account
|
7
|
+
class Get < DLDInternet::DOctl::API::Base
|
8
|
+
|
9
|
+
# noinspection RubyUnnecessaryReturnValue
|
10
|
+
def GetAccount()
|
11
|
+
client.account.info()
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'dldinternet/doctl/api/base'
|
2
|
+
|
3
|
+
module DLDInternet
|
4
|
+
module DOctl
|
5
|
+
module API
|
6
|
+
module Account
|
7
|
+
class Ratelimit < DLDInternet::DOctl::API::Base
|
8
|
+
|
9
|
+
# noinspection RubyUnnecessaryReturnValue
|
10
|
+
def GetRatelimit()
|
11
|
+
|
12
|
+
res = client.ratelimit.info()
|
13
|
+
res = res.headers.select! { |k,v| k =~ /^ratelimit/ }
|
14
|
+
res['ratelimit-reset'] = Time.at(res['ratelimit-reset'].to_i)
|
15
|
+
res
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|