kontena-cli 0.8.4 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/bin/kontena +4 -0
  4. data/lib/kontena/cli/app_command.rb +2 -0
  5. data/lib/kontena/cli/apps/build_command.rb +26 -0
  6. data/lib/kontena/cli/apps/common.rb +41 -12
  7. data/lib/kontena/cli/apps/deploy_command.rb +31 -13
  8. data/lib/kontena/cli/apps/docker_helper.rb +34 -0
  9. data/lib/kontena/cli/apps/init_command.rb +130 -10
  10. data/lib/kontena/cli/apps/list_command.rb +4 -2
  11. data/lib/kontena/cli/apps/logs_command.rb +4 -2
  12. data/lib/kontena/cli/apps/remove_command.rb +4 -2
  13. data/lib/kontena/cli/apps/start_command.rb +4 -2
  14. data/lib/kontena/cli/apps/stop_command.rb +4 -2
  15. data/lib/kontena/cli/common.rb +3 -3
  16. data/lib/kontena/cli/container_command.rb +3 -0
  17. data/lib/kontena/cli/containers/inspect_command.rb +16 -0
  18. data/lib/kontena/cli/deploy_command.rb +3 -0
  19. data/lib/kontena/cli/etcd/get_command.rb +21 -0
  20. data/lib/kontena/cli/etcd/list_command.rb +26 -0
  21. data/lib/kontena/cli/etcd/mkdir_command.rb +17 -0
  22. data/lib/kontena/cli/etcd/remove_command.rb +21 -0
  23. data/lib/kontena/cli/etcd/set_command.rb +18 -0
  24. data/lib/kontena/cli/etcd_command.rb +17 -0
  25. data/lib/kontena/cli/grid_command.rb +2 -0
  26. data/lib/kontena/cli/grids/logs_command.rb +71 -0
  27. data/lib/kontena/cli/master/aws/create_command.rb +33 -0
  28. data/lib/kontena/cli/master/aws_command.rb +8 -0
  29. data/lib/kontena/cli/master/azure/create_command.rb +33 -0
  30. data/lib/kontena/cli/master/azure_command.rb +13 -0
  31. data/lib/kontena/cli/master/digital_ocean/create_command.rb +30 -0
  32. data/lib/kontena/cli/master/digital_ocean_command.rb +13 -0
  33. data/lib/kontena/cli/master/vagrant/create_command.rb +19 -0
  34. data/lib/kontena/cli/master/vagrant/restart_command.rb +20 -0
  35. data/lib/kontena/cli/master/vagrant/ssh_command.rb +15 -0
  36. data/lib/kontena/cli/master/vagrant/start_command.rb +20 -0
  37. data/lib/kontena/cli/master/vagrant/stop_command.rb +20 -0
  38. data/lib/kontena/cli/master/vagrant/terminate_command.rb +13 -0
  39. data/lib/kontena/cli/master/vagrant_command.rb +23 -0
  40. data/lib/kontena/cli/master_command.rb +15 -0
  41. data/lib/kontena/cli/node_command.rb +4 -0
  42. data/lib/kontena/cli/nodes/aws/create_command.rb +39 -0
  43. data/lib/kontena/cli/nodes/aws/restart_command.rb +28 -0
  44. data/lib/kontena/cli/nodes/aws/terminate_command.rb +20 -0
  45. data/lib/kontena/cli/nodes/aws_command.rb +15 -0
  46. data/lib/kontena/cli/nodes/azure/create_command.rb +39 -0
  47. data/lib/kontena/cli/nodes/azure/restart_command.rb +31 -0
  48. data/lib/kontena/cli/nodes/azure/terminate_command.rb +20 -0
  49. data/lib/kontena/cli/nodes/azure_command.rb +15 -0
  50. data/lib/kontena/cli/nodes/digital_ocean/create_command.rb +1 -1
  51. data/lib/kontena/cli/nodes/vagrant/create_command.rb +1 -1
  52. data/lib/kontena/cli/service_command.rb +4 -0
  53. data/lib/kontena/cli/services/add_env_command.rb +18 -0
  54. data/lib/kontena/cli/services/create_command.rb +8 -0
  55. data/lib/kontena/cli/services/remove_env_command.rb +17 -0
  56. data/lib/kontena/cli/services/services_helper.rb +20 -1
  57. data/lib/kontena/cli/services/update_command.rb +10 -0
  58. data/lib/kontena/client.rb +22 -1
  59. data/lib/kontena/machine/aws.rb +13 -0
  60. data/lib/kontena/machine/aws/cloudinit.yml +66 -0
  61. data/lib/kontena/machine/aws/cloudinit_master.yml +105 -0
  62. data/lib/kontena/machine/aws/master_provisioner.rb +161 -0
  63. data/lib/kontena/machine/aws/node_destroyer.rb +39 -0
  64. data/lib/kontena/machine/aws/node_provisioner.rb +168 -0
  65. data/lib/kontena/machine/azure.rb +13 -0
  66. data/lib/kontena/machine/azure/cloudinit.yml +59 -0
  67. data/lib/kontena/machine/azure/cloudinit_master.yml +105 -0
  68. data/lib/kontena/machine/azure/logger.rb +27 -0
  69. data/lib/kontena/machine/azure/master_provisioner.rb +126 -0
  70. data/lib/kontena/machine/azure/node_destroyer.rb +53 -0
  71. data/lib/kontena/machine/azure/node_provisioner.rb +128 -0
  72. data/lib/kontena/machine/digital_ocean.rb +1 -0
  73. data/lib/kontena/machine/digital_ocean/cloudinit.yml +1 -0
  74. data/lib/kontena/machine/digital_ocean/cloudinit_master.yml +105 -0
  75. data/lib/kontena/machine/digital_ocean/master_provisioner.rb +94 -0
  76. data/lib/kontena/machine/digital_ocean/node_provisioner.rb +8 -1
  77. data/lib/kontena/machine/vagrant.rb +2 -0
  78. data/lib/kontena/machine/vagrant/Vagrantfile.master.rb.erb +101 -0
  79. data/lib/kontena/machine/vagrant/{Vagrantfile.coreos.rb.erb → Vagrantfile.node.rb.erb} +0 -0
  80. data/lib/kontena/machine/vagrant/cloudinit.yml +2 -1
  81. data/lib/kontena/machine/vagrant/master_destroyer.rb +37 -0
  82. data/lib/kontena/machine/vagrant/master_provisioner.rb +75 -0
  83. data/lib/kontena/machine/vagrant/node_destroyer.rb +4 -0
  84. data/lib/kontena/machine/vagrant/node_provisioner.rb +1 -1
  85. data/lib/kontena/scripts/completer +29 -3
  86. data/spec/kontena/cli/app/common_spec.rb +61 -0
  87. data/spec/kontena/cli/app/deploy_command_spec.rb +25 -6
  88. data/spec/kontena/cli/app/docker_helper_spec.rb +32 -0
  89. data/spec/kontena/cli/common_spec.rb +53 -0
  90. metadata +61 -3
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kontena-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kontena, Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-21 00:00:00.000000000 Z
11
+ date: 2015-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -127,8 +127,10 @@ files:
127
127
  - kontena-cli.gemspec
128
128
  - kontena-docker.sh
129
129
  - lib/kontena/cli/app_command.rb
130
+ - lib/kontena/cli/apps/build_command.rb
130
131
  - lib/kontena/cli/apps/common.rb
131
132
  - lib/kontena/cli/apps/deploy_command.rb
133
+ - lib/kontena/cli/apps/docker_helper.rb
132
134
  - lib/kontena/cli/apps/init_command.rb
133
135
  - lib/kontena/cli/apps/list_command.rb
134
136
  - lib/kontena/cli/apps/logs_command.rb
@@ -138,7 +140,14 @@ files:
138
140
  - lib/kontena/cli/common.rb
139
141
  - lib/kontena/cli/container_command.rb
140
142
  - lib/kontena/cli/containers/exec_command.rb
143
+ - lib/kontena/cli/containers/inspect_command.rb
141
144
  - lib/kontena/cli/deploy_command.rb
145
+ - lib/kontena/cli/etcd/get_command.rb
146
+ - lib/kontena/cli/etcd/list_command.rb
147
+ - lib/kontena/cli/etcd/mkdir_command.rb
148
+ - lib/kontena/cli/etcd/remove_command.rb
149
+ - lib/kontena/cli/etcd/set_command.rb
150
+ - lib/kontena/cli/etcd_command.rb
142
151
  - lib/kontena/cli/external_registries/add_command.rb
143
152
  - lib/kontena/cli/external_registries/delete_command.rb
144
153
  - lib/kontena/cli/external_registries/list_command.rb
@@ -152,6 +161,7 @@ files:
152
161
  - lib/kontena/cli/grids/current_command.rb
153
162
  - lib/kontena/cli/grids/list_command.rb
154
163
  - lib/kontena/cli/grids/list_users_command.rb
164
+ - lib/kontena/cli/grids/logs_command.rb
155
165
  - lib/kontena/cli/grids/remove_command.rb
156
166
  - lib/kontena/cli/grids/remove_user_command.rb
157
167
  - lib/kontena/cli/grids/show_command.rb
@@ -159,7 +169,29 @@ files:
159
169
  - lib/kontena/cli/invite_command.rb
160
170
  - lib/kontena/cli/login_command.rb
161
171
  - lib/kontena/cli/logout_command.rb
172
+ - lib/kontena/cli/master/aws/create_command.rb
173
+ - lib/kontena/cli/master/aws_command.rb
174
+ - lib/kontena/cli/master/azure/create_command.rb
175
+ - lib/kontena/cli/master/azure_command.rb
176
+ - lib/kontena/cli/master/digital_ocean/create_command.rb
177
+ - lib/kontena/cli/master/digital_ocean_command.rb
178
+ - lib/kontena/cli/master/vagrant/create_command.rb
179
+ - lib/kontena/cli/master/vagrant/restart_command.rb
180
+ - lib/kontena/cli/master/vagrant/ssh_command.rb
181
+ - lib/kontena/cli/master/vagrant/start_command.rb
182
+ - lib/kontena/cli/master/vagrant/stop_command.rb
183
+ - lib/kontena/cli/master/vagrant/terminate_command.rb
184
+ - lib/kontena/cli/master/vagrant_command.rb
185
+ - lib/kontena/cli/master_command.rb
162
186
  - lib/kontena/cli/node_command.rb
187
+ - lib/kontena/cli/nodes/aws/create_command.rb
188
+ - lib/kontena/cli/nodes/aws/restart_command.rb
189
+ - lib/kontena/cli/nodes/aws/terminate_command.rb
190
+ - lib/kontena/cli/nodes/aws_command.rb
191
+ - lib/kontena/cli/nodes/azure/create_command.rb
192
+ - lib/kontena/cli/nodes/azure/restart_command.rb
193
+ - lib/kontena/cli/nodes/azure/terminate_command.rb
194
+ - lib/kontena/cli/nodes/azure_command.rb
163
195
  - lib/kontena/cli/nodes/digital_ocean/create_command.rb
164
196
  - lib/kontena/cli/nodes/digital_ocean/restart_command.rb
165
197
  - lib/kontena/cli/nodes/digital_ocean/terminate_command.rb
@@ -181,6 +213,7 @@ files:
181
213
  - lib/kontena/cli/registry_command.rb
182
214
  - lib/kontena/cli/reset_password_command.rb
183
215
  - lib/kontena/cli/service_command.rb
216
+ - lib/kontena/cli/services/add_env_command.rb
184
217
  - lib/kontena/cli/services/container_command.rb
185
218
  - lib/kontena/cli/services/containers_command.rb
186
219
  - lib/kontena/cli/services/create_command.rb
@@ -188,6 +221,7 @@ files:
188
221
  - lib/kontena/cli/services/deploy_command.rb
189
222
  - lib/kontena/cli/services/list_command.rb
190
223
  - lib/kontena/cli/services/logs_command.rb
224
+ - lib/kontena/cli/services/remove_env_command.rb
191
225
  - lib/kontena/cli/services/restart_command.rb
192
226
  - lib/kontena/cli/services/scale_command.rb
193
227
  - lib/kontena/cli/services/services_helper.rb
@@ -206,20 +240,41 @@ files:
206
240
  - lib/kontena/cli/whoami_command.rb
207
241
  - lib/kontena/client.rb
208
242
  - lib/kontena/errors.rb
243
+ - lib/kontena/machine/aws.rb
244
+ - lib/kontena/machine/aws/cloudinit.yml
245
+ - lib/kontena/machine/aws/cloudinit_master.yml
246
+ - lib/kontena/machine/aws/master_provisioner.rb
247
+ - lib/kontena/machine/aws/node_destroyer.rb
248
+ - lib/kontena/machine/aws/node_provisioner.rb
249
+ - lib/kontena/machine/azure.rb
250
+ - lib/kontena/machine/azure/cloudinit.yml
251
+ - lib/kontena/machine/azure/cloudinit_master.yml
252
+ - lib/kontena/machine/azure/logger.rb
253
+ - lib/kontena/machine/azure/master_provisioner.rb
254
+ - lib/kontena/machine/azure/node_destroyer.rb
255
+ - lib/kontena/machine/azure/node_provisioner.rb
209
256
  - lib/kontena/machine/common.rb
210
257
  - lib/kontena/machine/digital_ocean.rb
211
258
  - lib/kontena/machine/digital_ocean/cloudinit.yml
259
+ - lib/kontena/machine/digital_ocean/cloudinit_master.yml
260
+ - lib/kontena/machine/digital_ocean/master_provisioner.rb
212
261
  - lib/kontena/machine/digital_ocean/node_destroyer.rb
213
262
  - lib/kontena/machine/digital_ocean/node_provisioner.rb
214
263
  - lib/kontena/machine/random_name.rb
215
264
  - lib/kontena/machine/vagrant.rb
216
- - lib/kontena/machine/vagrant/Vagrantfile.coreos.rb.erb
265
+ - lib/kontena/machine/vagrant/Vagrantfile.master.rb.erb
266
+ - lib/kontena/machine/vagrant/Vagrantfile.node.rb.erb
217
267
  - lib/kontena/machine/vagrant/cloudinit.yml
268
+ - lib/kontena/machine/vagrant/master_destroyer.rb
269
+ - lib/kontena/machine/vagrant/master_provisioner.rb
218
270
  - lib/kontena/machine/vagrant/node_destroyer.rb
219
271
  - lib/kontena/machine/vagrant/node_provisioner.rb
220
272
  - lib/kontena/scripts/completer
221
273
  - lib/kontena/scripts/init
274
+ - spec/kontena/cli/app/common_spec.rb
222
275
  - spec/kontena/cli/app/deploy_command_spec.rb
276
+ - spec/kontena/cli/app/docker_helper_spec.rb
277
+ - spec/kontena/cli/common_spec.rb
223
278
  - spec/kontena/cli/deploy_command_spec.rb
224
279
  - spec/kontena/cli/login_command_spec.rb
225
280
  - spec/kontena/cli/register_command_spec.rb
@@ -251,7 +306,10 @@ signing_key:
251
306
  specification_version: 4
252
307
  summary: Kontena command line tool
253
308
  test_files:
309
+ - spec/kontena/cli/app/common_spec.rb
254
310
  - spec/kontena/cli/app/deploy_command_spec.rb
311
+ - spec/kontena/cli/app/docker_helper_spec.rb
312
+ - spec/kontena/cli/common_spec.rb
255
313
  - spec/kontena/cli/deploy_command_spec.rb
256
314
  - spec/kontena/cli/login_command_spec.rb
257
315
  - spec/kontena/cli/register_command_spec.rb