bosh_cli 0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. data/README +4 -0
  2. data/Rakefile +55 -0
  3. data/bin/bosh +17 -0
  4. data/lib/cli.rb +76 -0
  5. data/lib/cli/cache.rb +44 -0
  6. data/lib/cli/changeset_helper.rb +142 -0
  7. data/lib/cli/command_definition.rb +52 -0
  8. data/lib/cli/commands/base.rb +245 -0
  9. data/lib/cli/commands/biff.rb +300 -0
  10. data/lib/cli/commands/blob.rb +125 -0
  11. data/lib/cli/commands/cloudcheck.rb +169 -0
  12. data/lib/cli/commands/deployment.rb +147 -0
  13. data/lib/cli/commands/job.rb +42 -0
  14. data/lib/cli/commands/job_management.rb +117 -0
  15. data/lib/cli/commands/log_management.rb +81 -0
  16. data/lib/cli/commands/maintenance.rb +131 -0
  17. data/lib/cli/commands/misc.rb +240 -0
  18. data/lib/cli/commands/package.rb +112 -0
  19. data/lib/cli/commands/property_management.rb +125 -0
  20. data/lib/cli/commands/release.rb +469 -0
  21. data/lib/cli/commands/ssh.rb +271 -0
  22. data/lib/cli/commands/stemcell.rb +184 -0
  23. data/lib/cli/commands/task.rb +213 -0
  24. data/lib/cli/commands/user.rb +28 -0
  25. data/lib/cli/commands/vms.rb +53 -0
  26. data/lib/cli/config.rb +154 -0
  27. data/lib/cli/core_ext.rb +145 -0
  28. data/lib/cli/dependency_helper.rb +62 -0
  29. data/lib/cli/deployment_helper.rb +263 -0
  30. data/lib/cli/deployment_manifest_compiler.rb +28 -0
  31. data/lib/cli/director.rb +633 -0
  32. data/lib/cli/director_task.rb +64 -0
  33. data/lib/cli/errors.rb +48 -0
  34. data/lib/cli/event_log_renderer.rb +351 -0
  35. data/lib/cli/job_builder.rb +226 -0
  36. data/lib/cli/package_builder.rb +254 -0
  37. data/lib/cli/packaging_helper.rb +248 -0
  38. data/lib/cli/release.rb +176 -0
  39. data/lib/cli/release_builder.rb +215 -0
  40. data/lib/cli/release_compiler.rb +178 -0
  41. data/lib/cli/release_tarball.rb +272 -0
  42. data/lib/cli/runner.rb +771 -0
  43. data/lib/cli/stemcell.rb +83 -0
  44. data/lib/cli/task_log_renderer.rb +40 -0
  45. data/lib/cli/templates/help_message.erb +75 -0
  46. data/lib/cli/validation.rb +42 -0
  47. data/lib/cli/version.rb +7 -0
  48. data/lib/cli/version_calc.rb +48 -0
  49. data/lib/cli/versions_index.rb +126 -0
  50. data/lib/cli/yaml_helper.rb +62 -0
  51. data/spec/assets/biff/bad_gateway_config.yml +28 -0
  52. data/spec/assets/biff/good_simple_config.yml +63 -0
  53. data/spec/assets/biff/good_simple_golden_config.yml +63 -0
  54. data/spec/assets/biff/good_simple_template.erb +69 -0
  55. data/spec/assets/biff/multiple_subnets_config.yml +40 -0
  56. data/spec/assets/biff/network_only_template.erb +34 -0
  57. data/spec/assets/biff/no_cc_config.yml +27 -0
  58. data/spec/assets/biff/no_range_config.yml +27 -0
  59. data/spec/assets/biff/no_subnet_config.yml +16 -0
  60. data/spec/assets/biff/ok_network_config.yml +30 -0
  61. data/spec/assets/biff/properties_template.erb +6 -0
  62. data/spec/assets/deployment.MF +0 -0
  63. data/spec/assets/plugins/bosh/cli/commands/echo.rb +43 -0
  64. data/spec/assets/plugins/bosh/cli/commands/ruby.rb +24 -0
  65. data/spec/assets/release/jobs/cacher.tgz +0 -0
  66. data/spec/assets/release/jobs/cacher/config/file1.conf +0 -0
  67. data/spec/assets/release/jobs/cacher/config/file2.conf +0 -0
  68. data/spec/assets/release/jobs/cacher/job.MF +6 -0
  69. data/spec/assets/release/jobs/cacher/monit +1 -0
  70. data/spec/assets/release/jobs/cleaner.tgz +0 -0
  71. data/spec/assets/release/jobs/cleaner/job.MF +4 -0
  72. data/spec/assets/release/jobs/cleaner/monit +1 -0
  73. data/spec/assets/release/jobs/sweeper.tgz +0 -0
  74. data/spec/assets/release/jobs/sweeper/config/test.conf +1 -0
  75. data/spec/assets/release/jobs/sweeper/job.MF +5 -0
  76. data/spec/assets/release/jobs/sweeper/monit +1 -0
  77. data/spec/assets/release/packages/mutator.tar.gz +0 -0
  78. data/spec/assets/release/packages/stuff.tgz +0 -0
  79. data/spec/assets/release/release.MF +17 -0
  80. data/spec/assets/release_invalid_checksum.tgz +0 -0
  81. data/spec/assets/release_invalid_jobs.tgz +0 -0
  82. data/spec/assets/release_no_name.tgz +0 -0
  83. data/spec/assets/release_no_version.tgz +0 -0
  84. data/spec/assets/stemcell/image +1 -0
  85. data/spec/assets/stemcell/stemcell.MF +6 -0
  86. data/spec/assets/stemcell_invalid_mf.tgz +0 -0
  87. data/spec/assets/stemcell_no_image.tgz +0 -0
  88. data/spec/assets/valid_release.tgz +0 -0
  89. data/spec/assets/valid_stemcell.tgz +0 -0
  90. data/spec/spec_helper.rb +25 -0
  91. data/spec/unit/base_command_spec.rb +66 -0
  92. data/spec/unit/biff_spec.rb +135 -0
  93. data/spec/unit/cache_spec.rb +36 -0
  94. data/spec/unit/cli_commands_spec.rb +481 -0
  95. data/spec/unit/config_spec.rb +139 -0
  96. data/spec/unit/core_ext_spec.rb +77 -0
  97. data/spec/unit/dependency_helper_spec.rb +52 -0
  98. data/spec/unit/deployment_manifest_compiler_spec.rb +63 -0
  99. data/spec/unit/director_spec.rb +511 -0
  100. data/spec/unit/director_task_spec.rb +48 -0
  101. data/spec/unit/event_log_renderer_spec.rb +171 -0
  102. data/spec/unit/hash_changeset_spec.rb +73 -0
  103. data/spec/unit/job_builder_spec.rb +454 -0
  104. data/spec/unit/package_builder_spec.rb +567 -0
  105. data/spec/unit/release_builder_spec.rb +65 -0
  106. data/spec/unit/release_spec.rb +66 -0
  107. data/spec/unit/release_tarball_spec.rb +33 -0
  108. data/spec/unit/runner_spec.rb +140 -0
  109. data/spec/unit/ssh_spec.rb +78 -0
  110. data/spec/unit/stemcell_spec.rb +17 -0
  111. data/spec/unit/version_calc_spec.rb +27 -0
  112. data/spec/unit/versions_index_spec.rb +132 -0
  113. metadata +338 -0
metadata ADDED
@@ -0,0 +1,338 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bosh_cli
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.16'
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - VMware
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-04-11 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: json_pure
16
+ requirement: &70285282483660 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 1.6.1
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70285282483660
25
+ - !ruby/object:Gem::Dependency
26
+ name: highline
27
+ requirement: &70285282482820 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: 1.6.2
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *70285282482820
36
+ - !ruby/object:Gem::Dependency
37
+ name: progressbar
38
+ requirement: &70285282481940 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: 0.9.0
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *70285282481940
47
+ - !ruby/object:Gem::Dependency
48
+ name: httpclient
49
+ requirement: &70285282480760 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: 2.2.4
55
+ - - <=
56
+ - !ruby/object:Gem::Version
57
+ version: 2.2.4
58
+ type: :runtime
59
+ prerelease: false
60
+ version_requirements: *70285282480760
61
+ - !ruby/object:Gem::Dependency
62
+ name: terminal-table
63
+ requirement: &70285282477300 !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: 1.4.2
69
+ type: :runtime
70
+ prerelease: false
71
+ version_requirements: *70285282477300
72
+ - !ruby/object:Gem::Dependency
73
+ name: blobstore_client
74
+ requirement: &70285282476580 !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ~>
78
+ - !ruby/object:Gem::Version
79
+ version: 0.3.13
80
+ type: :runtime
81
+ prerelease: false
82
+ version_requirements: *70285282476580
83
+ - !ruby/object:Gem::Dependency
84
+ name: net-ssh
85
+ requirement: &70285282475380 !ruby/object:Gem::Requirement
86
+ none: false
87
+ requirements:
88
+ - - ~>
89
+ - !ruby/object:Gem::Version
90
+ version: 2.2.1
91
+ type: :runtime
92
+ prerelease: false
93
+ version_requirements: *70285282475380
94
+ - !ruby/object:Gem::Dependency
95
+ name: net-ssh-gateway
96
+ requirement: &70285282474540 !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ~>
100
+ - !ruby/object:Gem::Version
101
+ version: 1.1.0
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: *70285282474540
105
+ - !ruby/object:Gem::Dependency
106
+ name: net-scp
107
+ requirement: &70285282473460 !ruby/object:Gem::Requirement
108
+ none: false
109
+ requirements:
110
+ - - ~>
111
+ - !ruby/object:Gem::Version
112
+ version: 1.0.4
113
+ type: :runtime
114
+ prerelease: false
115
+ version_requirements: *70285282473460
116
+ - !ruby/object:Gem::Dependency
117
+ name: netaddr
118
+ requirement: &70285282472680 !ruby/object:Gem::Requirement
119
+ none: false
120
+ requirements:
121
+ - - ~>
122
+ - !ruby/object:Gem::Version
123
+ version: 1.5.0
124
+ type: :runtime
125
+ prerelease: false
126
+ version_requirements: *70285282472680
127
+ description: BOSH command-line tool for release engineering and deployment
128
+ email: support@vmware.com
129
+ executables:
130
+ - bosh
131
+ extensions: []
132
+ extra_rdoc_files: []
133
+ files:
134
+ - bin/bosh
135
+ - lib/cli.rb
136
+ - lib/cli/cache.rb
137
+ - lib/cli/changeset_helper.rb
138
+ - lib/cli/command_definition.rb
139
+ - lib/cli/commands/base.rb
140
+ - lib/cli/commands/biff.rb
141
+ - lib/cli/commands/blob.rb
142
+ - lib/cli/commands/cloudcheck.rb
143
+ - lib/cli/commands/deployment.rb
144
+ - lib/cli/commands/job.rb
145
+ - lib/cli/commands/job_management.rb
146
+ - lib/cli/commands/log_management.rb
147
+ - lib/cli/commands/maintenance.rb
148
+ - lib/cli/commands/misc.rb
149
+ - lib/cli/commands/package.rb
150
+ - lib/cli/commands/property_management.rb
151
+ - lib/cli/commands/release.rb
152
+ - lib/cli/commands/ssh.rb
153
+ - lib/cli/commands/stemcell.rb
154
+ - lib/cli/commands/task.rb
155
+ - lib/cli/commands/user.rb
156
+ - lib/cli/commands/vms.rb
157
+ - lib/cli/config.rb
158
+ - lib/cli/core_ext.rb
159
+ - lib/cli/dependency_helper.rb
160
+ - lib/cli/deployment_helper.rb
161
+ - lib/cli/deployment_manifest_compiler.rb
162
+ - lib/cli/director.rb
163
+ - lib/cli/director_task.rb
164
+ - lib/cli/errors.rb
165
+ - lib/cli/event_log_renderer.rb
166
+ - lib/cli/job_builder.rb
167
+ - lib/cli/package_builder.rb
168
+ - lib/cli/packaging_helper.rb
169
+ - lib/cli/release.rb
170
+ - lib/cli/release_builder.rb
171
+ - lib/cli/release_compiler.rb
172
+ - lib/cli/release_tarball.rb
173
+ - lib/cli/runner.rb
174
+ - lib/cli/stemcell.rb
175
+ - lib/cli/task_log_renderer.rb
176
+ - lib/cli/templates/help_message.erb
177
+ - lib/cli/validation.rb
178
+ - lib/cli/version.rb
179
+ - lib/cli/version_calc.rb
180
+ - lib/cli/versions_index.rb
181
+ - lib/cli/yaml_helper.rb
182
+ - README
183
+ - Rakefile
184
+ - spec/assets/biff/bad_gateway_config.yml
185
+ - spec/assets/biff/good_simple_config.yml
186
+ - spec/assets/biff/good_simple_golden_config.yml
187
+ - spec/assets/biff/good_simple_template.erb
188
+ - spec/assets/biff/multiple_subnets_config.yml
189
+ - spec/assets/biff/network_only_template.erb
190
+ - spec/assets/biff/no_cc_config.yml
191
+ - spec/assets/biff/no_range_config.yml
192
+ - spec/assets/biff/no_subnet_config.yml
193
+ - spec/assets/biff/ok_network_config.yml
194
+ - spec/assets/biff/properties_template.erb
195
+ - spec/assets/deployment.MF
196
+ - spec/assets/plugins/bosh/cli/commands/echo.rb
197
+ - spec/assets/plugins/bosh/cli/commands/ruby.rb
198
+ - spec/assets/release/jobs/cacher.tgz
199
+ - spec/assets/release/jobs/cacher/config/file1.conf
200
+ - spec/assets/release/jobs/cacher/config/file2.conf
201
+ - spec/assets/release/jobs/cacher/job.MF
202
+ - spec/assets/release/jobs/cacher/monit
203
+ - spec/assets/release/jobs/cleaner.tgz
204
+ - spec/assets/release/jobs/cleaner/job.MF
205
+ - spec/assets/release/jobs/cleaner/monit
206
+ - spec/assets/release/jobs/sweeper.tgz
207
+ - spec/assets/release/jobs/sweeper/config/test.conf
208
+ - spec/assets/release/jobs/sweeper/job.MF
209
+ - spec/assets/release/jobs/sweeper/monit
210
+ - spec/assets/release/packages/mutator.tar.gz
211
+ - spec/assets/release/packages/stuff.tgz
212
+ - spec/assets/release/release.MF
213
+ - spec/assets/release_invalid_checksum.tgz
214
+ - spec/assets/release_invalid_jobs.tgz
215
+ - spec/assets/release_no_name.tgz
216
+ - spec/assets/release_no_version.tgz
217
+ - spec/assets/stemcell/image
218
+ - spec/assets/stemcell/stemcell.MF
219
+ - spec/assets/stemcell_invalid_mf.tgz
220
+ - spec/assets/stemcell_no_image.tgz
221
+ - spec/assets/valid_release.tgz
222
+ - spec/assets/valid_stemcell.tgz
223
+ - spec/spec_helper.rb
224
+ - spec/unit/base_command_spec.rb
225
+ - spec/unit/biff_spec.rb
226
+ - spec/unit/cache_spec.rb
227
+ - spec/unit/cli_commands_spec.rb
228
+ - spec/unit/config_spec.rb
229
+ - spec/unit/core_ext_spec.rb
230
+ - spec/unit/dependency_helper_spec.rb
231
+ - spec/unit/deployment_manifest_compiler_spec.rb
232
+ - spec/unit/director_spec.rb
233
+ - spec/unit/director_task_spec.rb
234
+ - spec/unit/event_log_renderer_spec.rb
235
+ - spec/unit/hash_changeset_spec.rb
236
+ - spec/unit/job_builder_spec.rb
237
+ - spec/unit/package_builder_spec.rb
238
+ - spec/unit/release_builder_spec.rb
239
+ - spec/unit/release_spec.rb
240
+ - spec/unit/release_tarball_spec.rb
241
+ - spec/unit/runner_spec.rb
242
+ - spec/unit/ssh_spec.rb
243
+ - spec/unit/stemcell_spec.rb
244
+ - spec/unit/version_calc_spec.rb
245
+ - spec/unit/versions_index_spec.rb
246
+ homepage: http://www.vmware.com
247
+ licenses: []
248
+ post_install_message:
249
+ rdoc_options: []
250
+ require_paths:
251
+ - lib
252
+ required_ruby_version: !ruby/object:Gem::Requirement
253
+ none: false
254
+ requirements:
255
+ - - ! '>='
256
+ - !ruby/object:Gem::Version
257
+ version: '0'
258
+ segments:
259
+ - 0
260
+ hash: -21086111877987397
261
+ required_rubygems_version: !ruby/object:Gem::Requirement
262
+ none: false
263
+ requirements:
264
+ - - ! '>='
265
+ - !ruby/object:Gem::Version
266
+ version: '0'
267
+ segments:
268
+ - 0
269
+ hash: -21086111877987397
270
+ requirements: []
271
+ rubyforge_project:
272
+ rubygems_version: 1.8.12
273
+ signing_key:
274
+ specification_version: 3
275
+ summary: BOSH CLI
276
+ test_files:
277
+ - spec/assets/biff/bad_gateway_config.yml
278
+ - spec/assets/biff/good_simple_config.yml
279
+ - spec/assets/biff/good_simple_golden_config.yml
280
+ - spec/assets/biff/good_simple_template.erb
281
+ - spec/assets/biff/multiple_subnets_config.yml
282
+ - spec/assets/biff/network_only_template.erb
283
+ - spec/assets/biff/no_cc_config.yml
284
+ - spec/assets/biff/no_range_config.yml
285
+ - spec/assets/biff/no_subnet_config.yml
286
+ - spec/assets/biff/ok_network_config.yml
287
+ - spec/assets/biff/properties_template.erb
288
+ - spec/assets/deployment.MF
289
+ - spec/assets/plugins/bosh/cli/commands/echo.rb
290
+ - spec/assets/plugins/bosh/cli/commands/ruby.rb
291
+ - spec/assets/release/jobs/cacher.tgz
292
+ - spec/assets/release/jobs/cacher/config/file1.conf
293
+ - spec/assets/release/jobs/cacher/config/file2.conf
294
+ - spec/assets/release/jobs/cacher/job.MF
295
+ - spec/assets/release/jobs/cacher/monit
296
+ - spec/assets/release/jobs/cleaner.tgz
297
+ - spec/assets/release/jobs/cleaner/job.MF
298
+ - spec/assets/release/jobs/cleaner/monit
299
+ - spec/assets/release/jobs/sweeper.tgz
300
+ - spec/assets/release/jobs/sweeper/config/test.conf
301
+ - spec/assets/release/jobs/sweeper/job.MF
302
+ - spec/assets/release/jobs/sweeper/monit
303
+ - spec/assets/release/packages/mutator.tar.gz
304
+ - spec/assets/release/packages/stuff.tgz
305
+ - spec/assets/release/release.MF
306
+ - spec/assets/release_invalid_checksum.tgz
307
+ - spec/assets/release_invalid_jobs.tgz
308
+ - spec/assets/release_no_name.tgz
309
+ - spec/assets/release_no_version.tgz
310
+ - spec/assets/stemcell/image
311
+ - spec/assets/stemcell/stemcell.MF
312
+ - spec/assets/stemcell_invalid_mf.tgz
313
+ - spec/assets/stemcell_no_image.tgz
314
+ - spec/assets/valid_release.tgz
315
+ - spec/assets/valid_stemcell.tgz
316
+ - spec/spec_helper.rb
317
+ - spec/unit/base_command_spec.rb
318
+ - spec/unit/biff_spec.rb
319
+ - spec/unit/cache_spec.rb
320
+ - spec/unit/cli_commands_spec.rb
321
+ - spec/unit/config_spec.rb
322
+ - spec/unit/core_ext_spec.rb
323
+ - spec/unit/dependency_helper_spec.rb
324
+ - spec/unit/deployment_manifest_compiler_spec.rb
325
+ - spec/unit/director_spec.rb
326
+ - spec/unit/director_task_spec.rb
327
+ - spec/unit/event_log_renderer_spec.rb
328
+ - spec/unit/hash_changeset_spec.rb
329
+ - spec/unit/job_builder_spec.rb
330
+ - spec/unit/package_builder_spec.rb
331
+ - spec/unit/release_builder_spec.rb
332
+ - spec/unit/release_spec.rb
333
+ - spec/unit/release_tarball_spec.rb
334
+ - spec/unit/runner_spec.rb
335
+ - spec/unit/ssh_spec.rb
336
+ - spec/unit/stemcell_spec.rb
337
+ - spec/unit/version_calc_spec.rb
338
+ - spec/unit/versions_index_spec.rb