crowbar-client 2.2.1 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/crowbar/client/app/backup.rb +148 -0
- data/lib/crowbar/client/app/entry.rb +4 -4
- data/lib/crowbar/client/app/node.rb +26 -13
- data/lib/crowbar/client/app/proposal.rb +59 -0
- data/lib/crowbar/client/app.rb +3 -3
- data/lib/crowbar/client/command/{reset/proposal.rb → backup/create.rb} +9 -3
- data/lib/crowbar/client/command/backup/delete.rb +42 -0
- data/lib/crowbar/client/command/backup/download.rb +68 -0
- data/lib/crowbar/client/command/backup/list.rb +76 -0
- data/lib/crowbar/client/command/{reset/nodes.rb → backup/upload.rb} +9 -4
- data/lib/crowbar/client/command/{reset.rb → backup.rb} +14 -5
- data/lib/crowbar/client/command/node/group.rb +44 -0
- data/lib/crowbar/client/command/node/list.rb +37 -16
- data/lib/crowbar/client/command/node.rb +3 -0
- data/lib/crowbar/client/command/proposal/reset.rb +48 -0
- data/lib/crowbar/client/command/proposal.rb +3 -0
- data/lib/crowbar/client/command.rb +3 -3
- data/lib/crowbar/client/config.rb +5 -5
- data/lib/crowbar/client/mixin/barclamp.rb +1 -4
- data/lib/crowbar/client/request/backup/create.rb +46 -0
- data/lib/crowbar/client/request/{reset/proposal.rb → backup/delete.rb} +8 -4
- data/lib/crowbar/client/request/backup/download.rb +47 -0
- data/lib/crowbar/client/request/{reset/nodes.rb → backup/list.rb} +6 -3
- data/lib/crowbar/client/request/backup/upload.rb +48 -0
- data/lib/crowbar/client/request/backup.rb +38 -0
- data/lib/crowbar/client/request/base.rb +4 -4
- data/lib/crowbar/client/request/node/group.rb +39 -0
- data/lib/crowbar/client/request/node.rb +3 -0
- data/lib/crowbar/client/request/party.rb +2 -2
- data/lib/crowbar/client/request/proposal/reset.rb +40 -0
- data/lib/crowbar/client/request/proposal.rb +3 -0
- data/lib/crowbar/client/request.rb +3 -3
- data/lib/crowbar/client/version.rb +2 -2
- data/spec/crowbar/client/command/backup/create_spec.rb +42 -0
- data/spec/crowbar/client/command/backup/delete_spec.rb +41 -0
- data/spec/crowbar/client/command/backup/download_spec.rb +40 -0
- data/spec/crowbar/client/command/{reset/nodes_spec.rb → backup/list_spec.rb} +3 -3
- data/spec/crowbar/client/command/backup/upload_spec.rb +40 -0
- data/spec/crowbar/client/command/{reset/proposal_spec.rb → node/group_spec.rb} +3 -3
- data/spec/crowbar/client/command/proposal/create_spec.rb +3 -7
- data/spec/crowbar/client/command/proposal/edit_spec.rb +4 -8
- data/spec/crowbar/client/command/proposal/reset_spec.rb +39 -0
- data/spec/crowbar/client/request/{reset/proposal_spec.rb → backup/create_spec.rb} +37 -36
- data/spec/crowbar/client/request/{reset/nodes_spec.rb → backup/delete_spec.rb} +34 -36
- data/spec/crowbar/client/request/backup/download_spec.rb +53 -0
- data/spec/crowbar/client/request/backup/list_spec.rb +52 -0
- data/spec/crowbar/client/request/backup/upload_spec.rb +55 -0
- data/spec/crowbar/client/request/barclamp/list_spec.rb +1 -1
- data/spec/crowbar/client/request/batch/build_spec.rb +1 -1
- data/spec/crowbar/client/request/batch/export_spec.rb +1 -1
- data/spec/crowbar/client/request/host_ip/allocate_spec.rb +1 -1
- data/spec/crowbar/client/request/host_ip/deallocate_spec.rb +1 -1
- data/spec/crowbar/client/request/installer/start_spec.rb +1 -1
- data/spec/crowbar/client/request/installer/status_spec.rb +1 -1
- data/spec/crowbar/client/request/interface/disable_spec.rb +1 -1
- data/spec/crowbar/client/request/interface/enable_spec.rb +1 -1
- data/spec/crowbar/client/request/node/action_spec.rb +1 -1
- data/spec/crowbar/client/request/node/delete_spec.rb +1 -1
- data/spec/crowbar/client/request/node/group_spec.rb +53 -0
- data/spec/crowbar/client/request/node/list_spec.rb +1 -1
- data/spec/crowbar/client/request/node/rename_spec.rb +1 -1
- data/spec/crowbar/client/request/node/role_spec.rb +1 -1
- data/spec/crowbar/client/request/node/show_spec.rb +1 -1
- data/spec/crowbar/client/request/node/status_spec.rb +1 -1
- data/spec/crowbar/client/request/node/transition_spec.rb +1 -1
- data/spec/crowbar/client/request/proposal/commit_spec.rb +1 -1
- data/spec/crowbar/client/request/proposal/create_spec.rb +34 -36
- data/spec/crowbar/client/request/proposal/delete_spec.rb +1 -1
- data/spec/crowbar/client/request/proposal/dequeue_spec.rb +1 -1
- data/spec/crowbar/client/request/proposal/edit_spec.rb +34 -36
- data/spec/crowbar/client/request/proposal/list_spec.rb +1 -1
- data/spec/crowbar/client/request/proposal/reset_spec.rb +53 -0
- data/spec/crowbar/client/request/proposal/show_spec.rb +1 -1
- data/spec/crowbar/client/request/proposal/template_spec.rb +1 -1
- data/spec/crowbar/client/request/repository/activate_all_spec.rb +1 -1
- data/spec/crowbar/client/request/repository/activate_spec.rb +1 -1
- data/spec/crowbar/client/request/repository/deactivate_all_spec.rb +1 -1
- data/spec/crowbar/client/request/repository/deactivate_spec.rb +1 -1
- data/spec/crowbar/client/request/repository/list_spec.rb +1 -1
- data/spec/crowbar/client/request/role/list_spec.rb +1 -1
- data/spec/crowbar/client/request/role/show_spec.rb +1 -1
- data/spec/crowbar/client/request/server/api_spec.rb +1 -1
- data/spec/crowbar/client/request/virtual_ip/allocate_spec.rb +1 -1
- data/spec/crowbar/client/request/virtual_ip/deallocate_spec.rb +1 -1
- data/spec/fixtures/upload.tgz +0 -0
- data/spec/spec_helper.rb +2 -0
- data/{lib/crowbar/client/request/reset.rb → spec/support/helper_methods.rb} +10 -11
- data/spec/support/request_examples.rb +31 -12
- metadata +130 -96
- data/lib/crowbar/client/app/reset.rb +0 -58
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crowbar-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Boerger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -123,19 +123,19 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 3.0.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: httmultiparty
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0.
|
131
|
+
version: 0.3.16
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 0.
|
138
|
+
version: 0.3.16
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: inifile
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -208,6 +208,7 @@ files:
|
|
208
208
|
- lib/crowbar-client.rb
|
209
209
|
- lib/crowbar/client.rb
|
210
210
|
- lib/crowbar/client/app.rb
|
211
|
+
- lib/crowbar/client/app/backup.rb
|
211
212
|
- lib/crowbar/client/app/barclamp.rb
|
212
213
|
- lib/crowbar/client/app/base.rb
|
213
214
|
- lib/crowbar/client/app/batch.rb
|
@@ -219,11 +220,16 @@ files:
|
|
219
220
|
- lib/crowbar/client/app/node.rb
|
220
221
|
- lib/crowbar/client/app/proposal.rb
|
221
222
|
- lib/crowbar/client/app/repository.rb
|
222
|
-
- lib/crowbar/client/app/reset.rb
|
223
223
|
- lib/crowbar/client/app/role.rb
|
224
224
|
- lib/crowbar/client/app/server.rb
|
225
225
|
- lib/crowbar/client/app/virtual_ip.rb
|
226
226
|
- lib/crowbar/client/command.rb
|
227
|
+
- lib/crowbar/client/command/backup.rb
|
228
|
+
- lib/crowbar/client/command/backup/create.rb
|
229
|
+
- lib/crowbar/client/command/backup/delete.rb
|
230
|
+
- lib/crowbar/client/command/backup/download.rb
|
231
|
+
- lib/crowbar/client/command/backup/list.rb
|
232
|
+
- lib/crowbar/client/command/backup/upload.rb
|
227
233
|
- lib/crowbar/client/command/barclamp.rb
|
228
234
|
- lib/crowbar/client/command/barclamp/list.rb
|
229
235
|
- lib/crowbar/client/command/base.rb
|
@@ -242,6 +248,7 @@ files:
|
|
242
248
|
- lib/crowbar/client/command/node.rb
|
243
249
|
- lib/crowbar/client/command/node/allocate.rb
|
244
250
|
- lib/crowbar/client/command/node/delete.rb
|
251
|
+
- lib/crowbar/client/command/node/group.rb
|
245
252
|
- lib/crowbar/client/command/node/hardware.rb
|
246
253
|
- lib/crowbar/client/command/node/identify.rb
|
247
254
|
- lib/crowbar/client/command/node/list.rb
|
@@ -264,6 +271,7 @@ files:
|
|
264
271
|
- lib/crowbar/client/command/proposal/dequeue.rb
|
265
272
|
- lib/crowbar/client/command/proposal/edit.rb
|
266
273
|
- lib/crowbar/client/command/proposal/list.rb
|
274
|
+
- lib/crowbar/client/command/proposal/reset.rb
|
267
275
|
- lib/crowbar/client/command/proposal/show.rb
|
268
276
|
- lib/crowbar/client/command/repository.rb
|
269
277
|
- lib/crowbar/client/command/repository/activate.rb
|
@@ -271,9 +279,6 @@ files:
|
|
271
279
|
- lib/crowbar/client/command/repository/deactivate.rb
|
272
280
|
- lib/crowbar/client/command/repository/deactivate_all.rb
|
273
281
|
- lib/crowbar/client/command/repository/list.rb
|
274
|
-
- lib/crowbar/client/command/reset.rb
|
275
|
-
- lib/crowbar/client/command/reset/nodes.rb
|
276
|
-
- lib/crowbar/client/command/reset/proposal.rb
|
277
282
|
- lib/crowbar/client/command/role.rb
|
278
283
|
- lib/crowbar/client/command/role/list.rb
|
279
284
|
- lib/crowbar/client/command/role/show.rb
|
@@ -298,6 +303,12 @@ files:
|
|
298
303
|
- lib/crowbar/client/mixin/filter.rb
|
299
304
|
- lib/crowbar/client/mixin/format.rb
|
300
305
|
- lib/crowbar/client/request.rb
|
306
|
+
- lib/crowbar/client/request/backup.rb
|
307
|
+
- lib/crowbar/client/request/backup/create.rb
|
308
|
+
- lib/crowbar/client/request/backup/delete.rb
|
309
|
+
- lib/crowbar/client/request/backup/download.rb
|
310
|
+
- lib/crowbar/client/request/backup/list.rb
|
311
|
+
- lib/crowbar/client/request/backup/upload.rb
|
301
312
|
- lib/crowbar/client/request/barclamp.rb
|
302
313
|
- lib/crowbar/client/request/barclamp/list.rb
|
303
314
|
- lib/crowbar/client/request/base.rb
|
@@ -316,6 +327,7 @@ files:
|
|
316
327
|
- lib/crowbar/client/request/node.rb
|
317
328
|
- lib/crowbar/client/request/node/action.rb
|
318
329
|
- lib/crowbar/client/request/node/delete.rb
|
330
|
+
- lib/crowbar/client/request/node/group.rb
|
319
331
|
- lib/crowbar/client/request/node/list.rb
|
320
332
|
- lib/crowbar/client/request/node/rename.rb
|
321
333
|
- lib/crowbar/client/request/node/role.rb
|
@@ -330,6 +342,7 @@ files:
|
|
330
342
|
- lib/crowbar/client/request/proposal/dequeue.rb
|
331
343
|
- lib/crowbar/client/request/proposal/edit.rb
|
332
344
|
- lib/crowbar/client/request/proposal/list.rb
|
345
|
+
- lib/crowbar/client/request/proposal/reset.rb
|
333
346
|
- lib/crowbar/client/request/proposal/show.rb
|
334
347
|
- lib/crowbar/client/request/proposal/template.rb
|
335
348
|
- lib/crowbar/client/request/repository.rb
|
@@ -338,9 +351,6 @@ files:
|
|
338
351
|
- lib/crowbar/client/request/repository/deactivate.rb
|
339
352
|
- lib/crowbar/client/request/repository/deactivate_all.rb
|
340
353
|
- lib/crowbar/client/request/repository/list.rb
|
341
|
-
- lib/crowbar/client/request/reset.rb
|
342
|
-
- lib/crowbar/client/request/reset/nodes.rb
|
343
|
-
- lib/crowbar/client/request/reset/proposal.rb
|
344
354
|
- lib/crowbar/client/request/role.rb
|
345
355
|
- lib/crowbar/client/request/role/list.rb
|
346
356
|
- lib/crowbar/client/request/role/show.rb
|
@@ -354,6 +364,11 @@ files:
|
|
354
364
|
- lib/crowbar/client/util/runner.rb
|
355
365
|
- lib/crowbar/client/version.rb
|
356
366
|
- spec/crowbar/client/app_spec.rb
|
367
|
+
- spec/crowbar/client/command/backup/create_spec.rb
|
368
|
+
- spec/crowbar/client/command/backup/delete_spec.rb
|
369
|
+
- spec/crowbar/client/command/backup/download_spec.rb
|
370
|
+
- spec/crowbar/client/command/backup/list_spec.rb
|
371
|
+
- spec/crowbar/client/command/backup/upload_spec.rb
|
357
372
|
- spec/crowbar/client/command/barclamp/list_spec.rb
|
358
373
|
- spec/crowbar/client/command/batch/build_spec.rb
|
359
374
|
- spec/crowbar/client/command/batch/export_spec.rb
|
@@ -365,6 +380,7 @@ files:
|
|
365
380
|
- spec/crowbar/client/command/interface/enable_spec.rb
|
366
381
|
- spec/crowbar/client/command/node/allocate_spec.rb
|
367
382
|
- spec/crowbar/client/command/node/delete_spec.rb
|
383
|
+
- spec/crowbar/client/command/node/group_spec.rb
|
368
384
|
- spec/crowbar/client/command/node/hardware_spec.rb
|
369
385
|
- spec/crowbar/client/command/node/identify_spec.rb
|
370
386
|
- spec/crowbar/client/command/node/list_spec.rb
|
@@ -386,14 +402,13 @@ files:
|
|
386
402
|
- spec/crowbar/client/command/proposal/dequeue_spec.rb
|
387
403
|
- spec/crowbar/client/command/proposal/edit_spec.rb
|
388
404
|
- spec/crowbar/client/command/proposal/list_spec.rb
|
405
|
+
- spec/crowbar/client/command/proposal/reset_spec.rb
|
389
406
|
- spec/crowbar/client/command/proposal/show_spec.rb
|
390
407
|
- spec/crowbar/client/command/repository/activate_all_spec.rb
|
391
408
|
- spec/crowbar/client/command/repository/activate_spec.rb
|
392
409
|
- spec/crowbar/client/command/repository/deactivate_all_spec.rb
|
393
410
|
- spec/crowbar/client/command/repository/deactivate_spec.rb
|
394
411
|
- spec/crowbar/client/command/repository/list_spec.rb
|
395
|
-
- spec/crowbar/client/command/reset/nodes_spec.rb
|
396
|
-
- spec/crowbar/client/command/reset/proposal_spec.rb
|
397
412
|
- spec/crowbar/client/command/role/list_spec.rb
|
398
413
|
- spec/crowbar/client/command/role/show_spec.rb
|
399
414
|
- spec/crowbar/client/command/server/api_spec.rb
|
@@ -405,6 +420,11 @@ files:
|
|
405
420
|
- spec/crowbar/client/formatter/array_spec.rb
|
406
421
|
- spec/crowbar/client/formatter/hash_spec.rb
|
407
422
|
- spec/crowbar/client/formatter/nested_spec.rb
|
423
|
+
- spec/crowbar/client/request/backup/create_spec.rb
|
424
|
+
- spec/crowbar/client/request/backup/delete_spec.rb
|
425
|
+
- spec/crowbar/client/request/backup/download_spec.rb
|
426
|
+
- spec/crowbar/client/request/backup/list_spec.rb
|
427
|
+
- spec/crowbar/client/request/backup/upload_spec.rb
|
408
428
|
- spec/crowbar/client/request/barclamp/list_spec.rb
|
409
429
|
- spec/crowbar/client/request/batch/build_spec.rb
|
410
430
|
- spec/crowbar/client/request/batch/export_spec.rb
|
@@ -416,6 +436,7 @@ files:
|
|
416
436
|
- spec/crowbar/client/request/interface/enable_spec.rb
|
417
437
|
- spec/crowbar/client/request/node/action_spec.rb
|
418
438
|
- spec/crowbar/client/request/node/delete_spec.rb
|
439
|
+
- spec/crowbar/client/request/node/group_spec.rb
|
419
440
|
- spec/crowbar/client/request/node/list_spec.rb
|
420
441
|
- spec/crowbar/client/request/node/rename_spec.rb
|
421
442
|
- spec/crowbar/client/request/node/role_spec.rb
|
@@ -429,6 +450,7 @@ files:
|
|
429
450
|
- spec/crowbar/client/request/proposal/dequeue_spec.rb
|
430
451
|
- spec/crowbar/client/request/proposal/edit_spec.rb
|
431
452
|
- spec/crowbar/client/request/proposal/list_spec.rb
|
453
|
+
- spec/crowbar/client/request/proposal/reset_spec.rb
|
432
454
|
- spec/crowbar/client/request/proposal/show_spec.rb
|
433
455
|
- spec/crowbar/client/request/proposal/template_spec.rb
|
434
456
|
- spec/crowbar/client/request/repository/activate_all_spec.rb
|
@@ -436,8 +458,6 @@ files:
|
|
436
458
|
- spec/crowbar/client/request/repository/deactivate_all_spec.rb
|
437
459
|
- spec/crowbar/client/request/repository/deactivate_spec.rb
|
438
460
|
- spec/crowbar/client/request/repository/list_spec.rb
|
439
|
-
- spec/crowbar/client/request/reset/nodes_spec.rb
|
440
|
-
- spec/crowbar/client/request/reset/proposal_spec.rb
|
441
461
|
- spec/crowbar/client/request/role/list_spec.rb
|
442
462
|
- spec/crowbar/client/request/role/show_spec.rb
|
443
463
|
- spec/crowbar/client/request/server/api_spec.rb
|
@@ -446,8 +466,10 @@ files:
|
|
446
466
|
- spec/crowbar/client/util/editor_spec.rb
|
447
467
|
- spec/crowbar/client/util/runner_spec.rb
|
448
468
|
- spec/crowbar/client_spec.rb
|
469
|
+
- spec/fixtures/upload.tgz
|
449
470
|
- spec/spec_helper.rb
|
450
471
|
- spec/support/command_context.rb
|
472
|
+
- spec/support/helper_methods.rb
|
451
473
|
- spec/support/request_examples.rb
|
452
474
|
homepage: https://github.com/crowbar/crowbar-client
|
453
475
|
licenses:
|
@@ -469,105 +491,117 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
469
491
|
version: '0'
|
470
492
|
requirements: []
|
471
493
|
rubyforge_project:
|
472
|
-
rubygems_version: 2.2.
|
494
|
+
rubygems_version: 2.2.2
|
473
495
|
signing_key:
|
474
496
|
specification_version: 4
|
475
497
|
summary: Crowbar commandline client
|
476
498
|
test_files:
|
477
|
-
- spec/
|
499
|
+
- spec/fixtures/upload.tgz
|
478
500
|
- spec/support/command_context.rb
|
479
|
-
- spec/
|
501
|
+
- spec/support/request_examples.rb
|
502
|
+
- spec/support/helper_methods.rb
|
480
503
|
- spec/crowbar/client/formatter/nested_spec.rb
|
481
|
-
- spec/crowbar/client/formatter/array_spec.rb
|
482
504
|
- spec/crowbar/client/formatter/hash_spec.rb
|
483
|
-
- spec/crowbar/client/
|
484
|
-
- spec/crowbar/client/
|
485
|
-
- spec/crowbar/client/
|
505
|
+
- spec/crowbar/client/formatter/array_spec.rb
|
506
|
+
- spec/crowbar/client/app_spec.rb
|
507
|
+
- spec/crowbar/client/request/host_ip/allocate_spec.rb
|
508
|
+
- spec/crowbar/client/request/host_ip/deallocate_spec.rb
|
509
|
+
- spec/crowbar/client/request/party_spec.rb
|
510
|
+
- spec/crowbar/client/request/barclamp/list_spec.rb
|
511
|
+
- spec/crowbar/client/request/server/api_spec.rb
|
512
|
+
- spec/crowbar/client/request/node/show_spec.rb
|
513
|
+
- spec/crowbar/client/request/node/role_spec.rb
|
514
|
+
- spec/crowbar/client/request/node/list_spec.rb
|
515
|
+
- spec/crowbar/client/request/node/delete_spec.rb
|
516
|
+
- spec/crowbar/client/request/node/group_spec.rb
|
517
|
+
- spec/crowbar/client/request/node/status_spec.rb
|
518
|
+
- spec/crowbar/client/request/node/action_spec.rb
|
519
|
+
- spec/crowbar/client/request/node/transition_spec.rb
|
520
|
+
- spec/crowbar/client/request/node/rename_spec.rb
|
521
|
+
- spec/crowbar/client/request/virtual_ip/allocate_spec.rb
|
522
|
+
- spec/crowbar/client/request/virtual_ip/deallocate_spec.rb
|
523
|
+
- spec/crowbar/client/request/interface/disable_spec.rb
|
524
|
+
- spec/crowbar/client/request/interface/enable_spec.rb
|
525
|
+
- spec/crowbar/client/request/installer/start_spec.rb
|
526
|
+
- spec/crowbar/client/request/installer/status_spec.rb
|
527
|
+
- spec/crowbar/client/request/backup/list_spec.rb
|
528
|
+
- spec/crowbar/client/request/backup/create_spec.rb
|
529
|
+
- spec/crowbar/client/request/backup/download_spec.rb
|
530
|
+
- spec/crowbar/client/request/backup/delete_spec.rb
|
531
|
+
- spec/crowbar/client/request/backup/upload_spec.rb
|
532
|
+
- spec/crowbar/client/request/repository/activate_spec.rb
|
533
|
+
- spec/crowbar/client/request/repository/list_spec.rb
|
534
|
+
- spec/crowbar/client/request/repository/activate_all_spec.rb
|
535
|
+
- spec/crowbar/client/request/repository/deactivate_all_spec.rb
|
536
|
+
- spec/crowbar/client/request/repository/deactivate_spec.rb
|
537
|
+
- spec/crowbar/client/request/batch/export_spec.rb
|
538
|
+
- spec/crowbar/client/request/batch/build_spec.rb
|
539
|
+
- spec/crowbar/client/request/role/show_spec.rb
|
540
|
+
- spec/crowbar/client/request/role/list_spec.rb
|
541
|
+
- spec/crowbar/client/request/proposal/show_spec.rb
|
542
|
+
- spec/crowbar/client/request/proposal/reset_spec.rb
|
543
|
+
- spec/crowbar/client/request/proposal/list_spec.rb
|
544
|
+
- spec/crowbar/client/request/proposal/create_spec.rb
|
545
|
+
- spec/crowbar/client/request/proposal/delete_spec.rb
|
546
|
+
- spec/crowbar/client/request/proposal/commit_spec.rb
|
547
|
+
- spec/crowbar/client/request/proposal/template_spec.rb
|
548
|
+
- spec/crowbar/client/request/proposal/dequeue_spec.rb
|
549
|
+
- spec/crowbar/client/request/proposal/edit_spec.rb
|
486
550
|
- spec/crowbar/client/util/editor_spec.rb
|
487
551
|
- spec/crowbar/client/util/runner_spec.rb
|
552
|
+
- spec/crowbar/client/filter/hash_spec.rb
|
553
|
+
- spec/crowbar/client/filter/subset_spec.rb
|
554
|
+
- spec/crowbar/client/filter/array_spec.rb
|
488
555
|
- spec/crowbar/client/command/host_ip/allocate_spec.rb
|
489
556
|
- spec/crowbar/client/command/host_ip/deallocate_spec.rb
|
490
|
-
- spec/crowbar/client/command/server/api_spec.rb
|
491
|
-
- spec/crowbar/client/command/repository/activate_all_spec.rb
|
492
|
-
- spec/crowbar/client/command/repository/deactivate_spec.rb
|
493
|
-
- spec/crowbar/client/command/repository/list_spec.rb
|
494
|
-
- spec/crowbar/client/command/repository/deactivate_all_spec.rb
|
495
|
-
- spec/crowbar/client/command/repository/activate_spec.rb
|
496
|
-
- spec/crowbar/client/command/role/show_spec.rb
|
497
|
-
- spec/crowbar/client/command/role/list_spec.rb
|
498
557
|
- spec/crowbar/client/command/barclamp/list_spec.rb
|
499
|
-
- spec/crowbar/client/command/
|
500
|
-
- spec/crowbar/client/command/proposal/dequeue_spec.rb
|
501
|
-
- spec/crowbar/client/command/proposal/delete_spec.rb
|
502
|
-
- spec/crowbar/client/command/proposal/edit_spec.rb
|
503
|
-
- spec/crowbar/client/command/proposal/list_spec.rb
|
504
|
-
- spec/crowbar/client/command/proposal/commit_spec.rb
|
505
|
-
- spec/crowbar/client/command/proposal/create_spec.rb
|
506
|
-
- spec/crowbar/client/command/installer/start_spec.rb
|
507
|
-
- spec/crowbar/client/command/installer/status_spec.rb
|
508
|
-
- spec/crowbar/client/command/virtual_ip/allocate_spec.rb
|
509
|
-
- spec/crowbar/client/command/virtual_ip/deallocate_spec.rb
|
510
|
-
- spec/crowbar/client/command/reset/nodes_spec.rb
|
511
|
-
- spec/crowbar/client/command/reset/proposal_spec.rb
|
512
|
-
- spec/crowbar/client/command/batch/export_spec.rb
|
513
|
-
- spec/crowbar/client/command/batch/build_spec.rb
|
514
|
-
- spec/crowbar/client/command/node/role_spec.rb
|
515
|
-
- spec/crowbar/client/command/node/transition_spec.rb
|
558
|
+
- spec/crowbar/client/command/server/api_spec.rb
|
516
559
|
- spec/crowbar/client/command/node/show_spec.rb
|
517
|
-
- spec/crowbar/client/command/node/poweroff_spec.rb
|
518
|
-
- spec/crowbar/client/command/node/hardware_spec.rb
|
519
|
-
- spec/crowbar/client/command/node/identify_spec.rb
|
520
560
|
- spec/crowbar/client/command/node/reset_spec.rb
|
521
|
-
- spec/crowbar/client/command/node/
|
522
|
-
- spec/crowbar/client/command/node/
|
561
|
+
- spec/crowbar/client/command/node/role_spec.rb
|
562
|
+
- spec/crowbar/client/command/node/hardware_spec.rb
|
523
563
|
- spec/crowbar/client/command/node/list_spec.rb
|
524
|
-
- spec/crowbar/client/command/node/
|
564
|
+
- spec/crowbar/client/command/node/poweroff_spec.rb
|
565
|
+
- spec/crowbar/client/command/node/shutdown_spec.rb
|
566
|
+
- spec/crowbar/client/command/node/reinstall_spec.rb
|
567
|
+
- spec/crowbar/client/command/node/delete_spec.rb
|
568
|
+
- spec/crowbar/client/command/node/powercycle_spec.rb
|
525
569
|
- spec/crowbar/client/command/node/allocate_spec.rb
|
570
|
+
- spec/crowbar/client/command/node/group_spec.rb
|
526
571
|
- spec/crowbar/client/command/node/reboot_spec.rb
|
527
572
|
- spec/crowbar/client/command/node/status_spec.rb
|
528
|
-
- spec/crowbar/client/command/node/
|
529
|
-
- spec/crowbar/client/command/node/
|
530
|
-
- spec/crowbar/client/command/node/
|
531
|
-
- spec/crowbar/client/command/
|
573
|
+
- spec/crowbar/client/command/node/identify_spec.rb
|
574
|
+
- spec/crowbar/client/command/node/transition_spec.rb
|
575
|
+
- spec/crowbar/client/command/node/poweron_spec.rb
|
576
|
+
- spec/crowbar/client/command/node/rename_spec.rb
|
577
|
+
- spec/crowbar/client/command/virtual_ip/allocate_spec.rb
|
578
|
+
- spec/crowbar/client/command/virtual_ip/deallocate_spec.rb
|
532
579
|
- spec/crowbar/client/command/interface/disable_spec.rb
|
533
|
-
- spec/crowbar/client/
|
534
|
-
- spec/crowbar/client/
|
535
|
-
- spec/crowbar/client/
|
536
|
-
- spec/crowbar/client/
|
537
|
-
- spec/crowbar/client/
|
538
|
-
- spec/crowbar/client/
|
539
|
-
- spec/crowbar/client/
|
540
|
-
- spec/crowbar/client/
|
541
|
-
- spec/crowbar/client/
|
542
|
-
- spec/crowbar/client/
|
543
|
-
- spec/crowbar/client/
|
544
|
-
- spec/crowbar/client/
|
545
|
-
- spec/crowbar/client/
|
546
|
-
- spec/crowbar/client/
|
547
|
-
- spec/crowbar/client/
|
548
|
-
- spec/crowbar/client/
|
549
|
-
- spec/crowbar/client/
|
550
|
-
- spec/crowbar/client/
|
551
|
-
- spec/crowbar/client/
|
552
|
-
- spec/crowbar/client/
|
553
|
-
- spec/crowbar/client/
|
554
|
-
- spec/crowbar/client/
|
555
|
-
- spec/crowbar/client/
|
556
|
-
- spec/crowbar/client/
|
557
|
-
- spec/crowbar/client/
|
558
|
-
- spec/crowbar/client/request/reset/proposal_spec.rb
|
559
|
-
- spec/crowbar/client/request/batch/export_spec.rb
|
560
|
-
- spec/crowbar/client/request/batch/build_spec.rb
|
561
|
-
- spec/crowbar/client/request/node/role_spec.rb
|
562
|
-
- spec/crowbar/client/request/node/transition_spec.rb
|
563
|
-
- spec/crowbar/client/request/node/show_spec.rb
|
564
|
-
- spec/crowbar/client/request/node/delete_spec.rb
|
565
|
-
- spec/crowbar/client/request/node/rename_spec.rb
|
566
|
-
- spec/crowbar/client/request/node/list_spec.rb
|
567
|
-
- spec/crowbar/client/request/node/action_spec.rb
|
568
|
-
- spec/crowbar/client/request/node/status_spec.rb
|
569
|
-
- spec/crowbar/client/request/interface/enable_spec.rb
|
570
|
-
- spec/crowbar/client/request/interface/disable_spec.rb
|
580
|
+
- spec/crowbar/client/command/interface/enable_spec.rb
|
581
|
+
- spec/crowbar/client/command/installer/start_spec.rb
|
582
|
+
- spec/crowbar/client/command/installer/status_spec.rb
|
583
|
+
- spec/crowbar/client/command/backup/list_spec.rb
|
584
|
+
- spec/crowbar/client/command/backup/create_spec.rb
|
585
|
+
- spec/crowbar/client/command/backup/download_spec.rb
|
586
|
+
- spec/crowbar/client/command/backup/delete_spec.rb
|
587
|
+
- spec/crowbar/client/command/backup/upload_spec.rb
|
588
|
+
- spec/crowbar/client/command/repository/activate_spec.rb
|
589
|
+
- spec/crowbar/client/command/repository/list_spec.rb
|
590
|
+
- spec/crowbar/client/command/repository/activate_all_spec.rb
|
591
|
+
- spec/crowbar/client/command/repository/deactivate_all_spec.rb
|
592
|
+
- spec/crowbar/client/command/repository/deactivate_spec.rb
|
593
|
+
- spec/crowbar/client/command/batch/export_spec.rb
|
594
|
+
- spec/crowbar/client/command/batch/build_spec.rb
|
595
|
+
- spec/crowbar/client/command/role/show_spec.rb
|
596
|
+
- spec/crowbar/client/command/role/list_spec.rb
|
597
|
+
- spec/crowbar/client/command/proposal/show_spec.rb
|
598
|
+
- spec/crowbar/client/command/proposal/reset_spec.rb
|
599
|
+
- spec/crowbar/client/command/proposal/list_spec.rb
|
600
|
+
- spec/crowbar/client/command/proposal/create_spec.rb
|
601
|
+
- spec/crowbar/client/command/proposal/delete_spec.rb
|
602
|
+
- spec/crowbar/client/command/proposal/commit_spec.rb
|
603
|
+
- spec/crowbar/client/command/proposal/dequeue_spec.rb
|
604
|
+
- spec/crowbar/client/command/proposal/edit_spec.rb
|
571
605
|
- spec/crowbar/client_spec.rb
|
572
606
|
- spec/spec_helper.rb
|
573
607
|
has_rdoc:
|
@@ -1,58 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright 2015, SUSE Linux GmbH
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
#
|
16
|
-
|
17
|
-
module Crowbar
|
18
|
-
module Client
|
19
|
-
module App
|
20
|
-
class Reset < Base
|
21
|
-
desc "proposal BARCLAMP [PROPOSAL]",
|
22
|
-
"Reset specific proposal"
|
23
|
-
|
24
|
-
long_desc <<-LONGDESC
|
25
|
-
`proposal BARCLAMP [PROPOSAL]` will try to reset the state
|
26
|
-
for the specified barclamp or optional proposal.
|
27
|
-
LONGDESC
|
28
|
-
|
29
|
-
def proposal(barclamp, proposal = nil)
|
30
|
-
Command::Reset::Proposal.new(
|
31
|
-
*command_params(
|
32
|
-
barclamp: barclamp,
|
33
|
-
proposal: proposal
|
34
|
-
)
|
35
|
-
).execute
|
36
|
-
rescue => e
|
37
|
-
catch_errors(e)
|
38
|
-
end
|
39
|
-
|
40
|
-
desc "nodes",
|
41
|
-
"Reset all nodes state"
|
42
|
-
|
43
|
-
long_desc <<-LONGDESC
|
44
|
-
`nodes` will try to reset the state of all known nodes within
|
45
|
-
the cluster.
|
46
|
-
LONGDESC
|
47
|
-
|
48
|
-
def nodes
|
49
|
-
Command::Reset::Nodes.new(
|
50
|
-
*command_params
|
51
|
-
).execute
|
52
|
-
rescue => e
|
53
|
-
catch_errors(e)
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|