rhc 1.2.7 → 1.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/rhc +6 -8
- data/bin/rhc-chk +23 -10
- data/features/domain.feature +1 -1
- data/features/lib/rhc_helper.rb +3 -2
- data/features/lib/rhc_helper/api.rb +7 -0
- data/features/lib/rhc_helper/app.rb +8 -10
- data/features/lib/rhc_helper/domain.rb +2 -1
- data/features/lib/rhc_helper/runnable.rb +2 -24
- data/features/sshkey.feature +3 -3
- data/features/step_definitions/cartridge_steps.rb +6 -6
- data/features/step_definitions/client_steps.rb +0 -1
- data/features/step_definitions/sshkey_steps.rb +2 -2
- data/features/support/before_hooks.rb +0 -1
- data/features/support/env.rb +5 -3
- data/lib/rhc-common.rb +1 -1
- data/lib/rhc.rb +9 -8
- data/lib/rhc/auth.rb +3 -0
- data/lib/rhc/auth/basic.rb +54 -0
- data/lib/rhc/cartridge_helpers.rb +11 -5
- data/lib/rhc/cli.rb +4 -2
- data/lib/rhc/command_runner.rb +35 -30
- data/lib/rhc/commands.rb +127 -18
- data/lib/rhc/commands/account.rb +24 -0
- data/lib/rhc/commands/alias.rb +1 -1
- data/lib/rhc/commands/app.rb +210 -209
- data/lib/rhc/commands/apps.rb +22 -0
- data/lib/rhc/commands/base.rb +10 -77
- data/lib/rhc/commands/cartridge.rb +35 -35
- data/lib/rhc/commands/domain.rb +20 -13
- data/lib/rhc/commands/git_clone.rb +30 -0
- data/lib/rhc/commands/{port-forward.rb → port_forward.rb} +3 -3
- data/lib/rhc/commands/server.rb +28 -16
- data/lib/rhc/commands/setup.rb +18 -1
- data/lib/rhc/commands/snapshot.rb +4 -4
- data/lib/rhc/commands/sshkey.rb +4 -18
- data/lib/rhc/commands/tail.rb +32 -9
- data/lib/rhc/config.rb +168 -99
- data/lib/rhc/context_helper.rb +22 -9
- data/lib/rhc/core_ext.rb +41 -1
- data/lib/rhc/exceptions.rb +21 -5
- data/lib/rhc/git_helpers.rb +81 -0
- data/lib/rhc/help_formatter.rb +21 -1
- data/lib/rhc/helpers.rb +222 -87
- data/lib/rhc/output_helpers.rb +94 -110
- data/lib/rhc/rest.rb +15 -198
- data/lib/rhc/rest/api.rb +88 -0
- data/lib/rhc/rest/application.rb +29 -30
- data/lib/rhc/rest/attributes.rb +27 -0
- data/lib/rhc/rest/base.rb +29 -33
- data/lib/rhc/rest/cartridge.rb +42 -20
- data/lib/rhc/rest/client.rb +351 -89
- data/lib/rhc/rest/domain.rb +7 -13
- data/lib/rhc/rest/gear_group.rb +1 -1
- data/lib/rhc/rest/key.rb +7 -2
- data/lib/rhc/rest/mock.rb +609 -0
- data/lib/rhc/rest/user.rb +6 -2
- data/lib/rhc/{ssh_key_helpers.rb → ssh_helpers.rb} +58 -28
- data/lib/rhc/{targz.rb → tar_gz.rb} +0 -0
- data/lib/rhc/usage_templates/command_help.erb +4 -1
- data/lib/rhc/usage_templates/help.erb +24 -11
- data/lib/rhc/usage_templates/options_help.erb +14 -0
- data/lib/rhc/wizard.rb +283 -213
- data/spec/keys/example.pem +23 -0
- data/spec/keys/example_private.pem +27 -0
- data/spec/keys/server.pem +19 -0
- data/spec/rest_spec_helper.rb +3 -371
- data/spec/rhc/auth_spec.rb +226 -0
- data/spec/rhc/cli_spec.rb +41 -14
- data/spec/rhc/command_spec.rb +44 -15
- data/spec/rhc/commands/account_spec.rb +41 -0
- data/spec/rhc/commands/alias_spec.rb +16 -15
- data/spec/rhc/commands/app_spec.rb +115 -92
- data/spec/rhc/commands/apps_spec.rb +39 -0
- data/spec/rhc/commands/cartridge_spec.rb +134 -112
- data/spec/rhc/commands/domain_spec.rb +31 -86
- data/spec/rhc/commands/git_clone_spec.rb +56 -0
- data/spec/rhc/commands/{port-forward_spec.rb → port_forward_spec.rb} +27 -32
- data/spec/rhc/commands/server_spec.rb +28 -3
- data/spec/rhc/commands/setup_spec.rb +29 -11
- data/spec/rhc/commands/snapshot_spec.rb +4 -3
- data/spec/rhc/commands/sshkey_spec.rb +24 -56
- data/spec/rhc/commands/tail_spec.rb +26 -9
- data/spec/rhc/commands/threaddump_spec.rb +12 -11
- data/spec/rhc/config_spec.rb +211 -164
- data/spec/rhc/context_spec.rb +2 -0
- data/spec/rhc/helpers_spec.rb +242 -46
- data/spec/rhc/rest_application_spec.rb +42 -28
- data/spec/rhc/rest_client_spec.rb +110 -93
- data/spec/rhc/rest_spec.rb +220 -131
- data/spec/rhc/targz_spec.rb +1 -1
- data/spec/rhc/wizard_spec.rb +435 -624
- data/spec/spec.opts +1 -1
- data/spec/spec_helper.rb +140 -6
- data/spec/wizard_spec_helper.rb +326 -0
- metadata +163 -143
- data/lib/rhc/client.rb +0 -17
- data/lib/rhc/git_helper.rb +0 -59
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rhc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: net-ssh
|
@@ -92,13 +92,13 @@ dependencies:
|
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: 1.5.1
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
|
-
name:
|
95
|
+
name: httpclient
|
96
96
|
requirement: !ruby/object:Gem::Requirement
|
97
97
|
none: false
|
98
98
|
requirements:
|
99
99
|
- - ! '>='
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: '
|
101
|
+
version: '2.2'
|
102
102
|
type: :runtime
|
103
103
|
prerelease: false
|
104
104
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -106,7 +106,7 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '2.2'
|
110
110
|
- !ruby/object:Gem::Dependency
|
111
111
|
name: open4
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
@@ -262,154 +262,171 @@ description: The client tools for the OpenShift platform that allow for applicat
|
|
262
262
|
email: dev@lists.openshift.redhat.com
|
263
263
|
executables:
|
264
264
|
- rhc-tail-files
|
265
|
-
- rhc-
|
266
|
-
- rhc-
|
267
|
-
- rhc-chk
|
265
|
+
- rhc-domain
|
266
|
+
- rhc-user-info
|
268
267
|
- rhc-create-domain
|
269
268
|
- rhc-ctl-app
|
270
|
-
- rhc-domain-info
|
271
|
-
- rhc-user-info
|
272
|
-
- rhc-create-app
|
273
|
-
- rhc
|
274
|
-
- rhc-domain
|
275
269
|
- rhc-ctl-domain
|
270
|
+
- rhc-chk
|
276
271
|
- rhc-app
|
272
|
+
- rhc-create-app
|
273
|
+
- rhc
|
274
|
+
- rhc-sshkey
|
275
|
+
- rhc-domain-info
|
276
|
+
- rhc-snapshot
|
277
277
|
- rhc-port-forward
|
278
278
|
extensions: []
|
279
279
|
extra_rdoc_files: []
|
280
280
|
files:
|
281
|
-
- lib/rhc.rb
|
282
|
-
- lib/rhc/autocomplete.rb
|
283
|
-
- lib/rhc/version.rb
|
284
|
-
- lib/rhc/ssh_key_helpers.rb
|
285
|
-
- lib/rhc/client.rb
|
286
|
-
- lib/rhc/git_helper.rb
|
281
|
+
- lib/rhc/cartridge_helpers.rb
|
287
282
|
- lib/rhc/exceptions.rb
|
288
|
-
- lib/rhc/
|
289
|
-
- lib/rhc/rest/
|
283
|
+
- lib/rhc/rest/user.rb
|
284
|
+
- lib/rhc/rest/application.rb
|
290
285
|
- lib/rhc/rest/base.rb
|
291
|
-
- lib/rhc/rest/
|
286
|
+
- lib/rhc/rest/mock.rb
|
292
287
|
- lib/rhc/rest/domain.rb
|
293
|
-
- lib/rhc/rest/
|
294
|
-
- lib/rhc/rest/cartridge.rb
|
288
|
+
- lib/rhc/rest/gear_group.rb
|
295
289
|
- lib/rhc/rest/key.rb
|
296
|
-
- lib/rhc/rest/
|
297
|
-
- lib/rhc/
|
298
|
-
- lib/rhc/
|
299
|
-
- lib/rhc/
|
300
|
-
- lib/rhc/
|
301
|
-
- lib/rhc/
|
290
|
+
- lib/rhc/rest/api.rb
|
291
|
+
- lib/rhc/rest/attributes.rb
|
292
|
+
- lib/rhc/rest/client.rb
|
293
|
+
- lib/rhc/rest/cartridge.rb
|
294
|
+
- lib/rhc/auth.rb
|
295
|
+
- lib/rhc/version.rb
|
302
296
|
- lib/rhc/output_helpers.rb
|
303
297
|
- lib/rhc/core_ext.rb
|
298
|
+
- lib/rhc/autocomplete.rb
|
299
|
+
- lib/rhc/coverage_helper.rb
|
300
|
+
- lib/rhc/config.rb
|
301
|
+
- lib/rhc/json.rb
|
302
|
+
- lib/rhc/commands.rb
|
303
|
+
- lib/rhc/commands/server.rb
|
304
|
+
- lib/rhc/commands/base.rb
|
305
|
+
- lib/rhc/commands/domain.rb
|
306
|
+
- lib/rhc/commands/apps.rb
|
307
|
+
- lib/rhc/commands/threaddump.rb
|
308
|
+
- lib/rhc/commands/account.rb
|
309
|
+
- lib/rhc/commands/snapshot.rb
|
310
|
+
- lib/rhc/commands/git_clone.rb
|
311
|
+
- lib/rhc/commands/port_forward.rb
|
312
|
+
- lib/rhc/commands/cartridge.rb
|
313
|
+
- lib/rhc/commands/setup.rb
|
314
|
+
- lib/rhc/commands/app.rb
|
315
|
+
- lib/rhc/commands/tail.rb
|
316
|
+
- lib/rhc/commands/sshkey.rb
|
317
|
+
- lib/rhc/commands/alias.rb
|
304
318
|
- lib/rhc/vendor/zliby.rb
|
319
|
+
- lib/rhc/vendor/okjson.rb
|
305
320
|
- lib/rhc/vendor/parseconfig.rb
|
306
321
|
- lib/rhc/vendor/sshkey.rb
|
307
|
-
- lib/rhc/
|
308
|
-
- lib/rhc/cartridge_helpers.rb
|
322
|
+
- lib/rhc/tar_gz.rb
|
309
323
|
- lib/rhc/command_runner.rb
|
324
|
+
- lib/rhc/ssh_helpers.rb
|
325
|
+
- lib/rhc/git_helpers.rb
|
326
|
+
- lib/rhc/wizard.rb
|
327
|
+
- lib/rhc/cli.rb
|
328
|
+
- lib/rhc/auth/basic.rb
|
310
329
|
- lib/rhc/context_helper.rb
|
330
|
+
- lib/rhc/help_formatter.rb
|
311
331
|
- lib/rhc/rest.rb
|
312
|
-
- lib/rhc/commands/base.rb
|
313
|
-
- lib/rhc/commands/setup.rb
|
314
|
-
- lib/rhc/commands/threaddump.rb
|
315
|
-
- lib/rhc/commands/alias.rb
|
316
|
-
- lib/rhc/commands/port-forward.rb
|
317
|
-
- lib/rhc/commands/domain.rb
|
318
|
-
- lib/rhc/commands/snapshot.rb
|
319
|
-
- lib/rhc/commands/sshkey.rb
|
320
|
-
- lib/rhc/commands/server.rb
|
321
|
-
- lib/rhc/commands/cartridge.rb
|
322
|
-
- lib/rhc/commands/tail.rb
|
323
|
-
- lib/rhc/commands/app.rb
|
324
332
|
- lib/rhc/helpers.rb
|
325
|
-
- lib/rhc/config.rb
|
326
|
-
- lib/rhc/coverage_helper.rb
|
327
333
|
- lib/rhc-common.rb
|
334
|
+
- lib/rhc.rb
|
328
335
|
- lib/rhc/usage_templates/command_syntax_help.erb
|
336
|
+
- lib/rhc/usage_templates/help.erb
|
329
337
|
- lib/rhc/usage_templates/missing_help.erb
|
330
338
|
- lib/rhc/usage_templates/command_help.erb
|
331
|
-
- lib/rhc/usage_templates/
|
339
|
+
- lib/rhc/usage_templates/options_help.erb
|
332
340
|
- lib/rhc/autocomplete_templates/rhc.erb
|
333
341
|
- conf/express.conf
|
334
342
|
- LICENSE
|
335
343
|
- COPYRIGHT
|
336
344
|
- README.md
|
337
345
|
- Rakefile
|
338
|
-
- spec/
|
346
|
+
- spec/spec_helper.rb
|
347
|
+
- spec/coverage_helper.rb
|
348
|
+
- spec/rhc/json_spec.rb
|
349
|
+
- spec/rhc/rest_spec.rb
|
339
350
|
- spec/rhc/helpers_spec.rb
|
340
|
-
- spec/rhc/config_spec.rb
|
341
351
|
- spec/rhc/rest_client_spec.rb
|
342
|
-
- spec/rhc/
|
343
|
-
- spec/rhc/
|
344
|
-
- spec/rhc/
|
345
|
-
- spec/rhc/assets/foo.txt
|
346
|
-
- spec/rhc/assets/targz_corrupted.tar.gz
|
347
|
-
- spec/rhc/assets/targz_sample.tar.gz
|
348
|
-
- spec/rhc/command_spec.rb
|
349
|
-
- spec/rhc/commands/port-forward_spec.rb
|
352
|
+
- spec/rhc/wizard_spec.rb
|
353
|
+
- spec/rhc/config_spec.rb
|
354
|
+
- spec/rhc/cli_spec.rb
|
350
355
|
- spec/rhc/commands/tail_spec.rb
|
351
|
-
- spec/rhc/commands/sshkey_spec.rb
|
352
|
-
- spec/rhc/commands/setup_spec.rb
|
353
|
-
- spec/rhc/commands/app_spec.rb
|
354
|
-
- spec/rhc/commands/alias_spec.rb
|
355
|
-
- spec/rhc/commands/threaddump_spec.rb
|
356
356
|
- spec/rhc/commands/domain_spec.rb
|
357
|
-
- spec/rhc/commands/
|
357
|
+
- spec/rhc/commands/apps_spec.rb
|
358
|
+
- spec/rhc/commands/git_clone_spec.rb
|
358
359
|
- spec/rhc/commands/server_spec.rb
|
360
|
+
- spec/rhc/commands/app_spec.rb
|
361
|
+
- spec/rhc/commands/setup_spec.rb
|
362
|
+
- spec/rhc/commands/port_forward_spec.rb
|
363
|
+
- spec/rhc/commands/account_spec.rb
|
359
364
|
- spec/rhc/commands/snapshot_spec.rb
|
365
|
+
- spec/rhc/commands/alias_spec.rb
|
366
|
+
- spec/rhc/commands/cartridge_spec.rb
|
367
|
+
- spec/rhc/commands/sshkey_spec.rb
|
368
|
+
- spec/rhc/commands/threaddump_spec.rb
|
369
|
+
- spec/rhc/assets/foo.txt
|
370
|
+
- spec/rhc/assets/targz_corrupted.tar.gz
|
371
|
+
- spec/rhc/assets/targz_sample.tar.gz
|
372
|
+
- spec/rhc/command_spec.rb
|
373
|
+
- spec/rhc/rest_application_spec.rb
|
374
|
+
- spec/rhc/targz_spec.rb
|
360
375
|
- spec/rhc/context_spec.rb
|
361
|
-
- spec/rhc/
|
362
|
-
- spec/
|
363
|
-
- spec/
|
376
|
+
- spec/rhc/auth_spec.rb
|
377
|
+
- spec/wizard_spec_helper.rb
|
378
|
+
- spec/keys/example.pem
|
379
|
+
- spec/keys/server.pem
|
380
|
+
- spec/keys/example_private.pem
|
364
381
|
- spec/rest_spec_helper.rb
|
365
|
-
- spec/
|
366
|
-
-
|
367
|
-
- features/
|
368
|
-
- features/
|
382
|
+
- spec/spec.opts
|
383
|
+
- features/multiple_cartridge.feature
|
384
|
+
- features/domain.feature
|
385
|
+
- features/verify.feature
|
386
|
+
- features/cartridge.feature
|
387
|
+
- features/client.feature
|
369
388
|
- features/support/env.rb
|
389
|
+
- features/support/key2.pub
|
390
|
+
- features/support/key1
|
370
391
|
- features/support/key1.pub
|
371
392
|
- features/support/before_hooks.rb
|
372
|
-
- features/support/assumptions.rb
|
373
|
-
- features/support/key2
|
374
393
|
- features/support/key3.pub
|
375
|
-
- features/support/key2
|
376
|
-
- features/
|
377
|
-
- features/
|
378
|
-
- features/
|
394
|
+
- features/support/key2
|
395
|
+
- features/support/assumptions.rb
|
396
|
+
- features/application.feature
|
397
|
+
- features/sshkey.feature
|
398
|
+
- features/geared_application.feature
|
399
|
+
- features/scaled_application.feature
|
379
400
|
- features/step_definitions/cartridge_steps.rb
|
401
|
+
- features/step_definitions/application_steps.rb
|
402
|
+
- features/step_definitions/client_steps.rb
|
380
403
|
- features/step_definitions/domain_steps.rb
|
381
|
-
- features/
|
382
|
-
- features/verify.feature
|
383
|
-
- features/cartridge.feature
|
384
|
-
- features/application.feature
|
404
|
+
- features/step_definitions/sshkey_steps.rb
|
385
405
|
- features/lib/rhc_helper.rb
|
386
406
|
- features/lib/rhc_helper/httpify.rb
|
387
|
-
- features/lib/rhc_helper/persistable.rb
|
388
|
-
- features/lib/rhc_helper/loggable.rb
|
389
407
|
- features/lib/rhc_helper/domain.rb
|
390
|
-
- features/lib/rhc_helper/
|
408
|
+
- features/lib/rhc_helper/runnable.rb
|
409
|
+
- features/lib/rhc_helper/loggable.rb
|
391
410
|
- features/lib/rhc_helper/commandify.rb
|
411
|
+
- features/lib/rhc_helper/api.rb
|
392
412
|
- features/lib/rhc_helper/cartridge.rb
|
393
413
|
- features/lib/rhc_helper/app.rb
|
394
|
-
- features/lib/rhc_helper/
|
395
|
-
- features/
|
396
|
-
- features/client.feature
|
414
|
+
- features/lib/rhc_helper/persistable.rb
|
415
|
+
- features/lib/rhc_helper/sshkey.rb
|
397
416
|
- features/README.md
|
398
|
-
- features/scaled_application.feature
|
399
|
-
- features/geared_application.feature
|
400
417
|
- bin/rhc-tail-files
|
401
|
-
- bin/rhc-
|
402
|
-
- bin/rhc-
|
403
|
-
- bin/rhc-chk
|
418
|
+
- bin/rhc-domain
|
419
|
+
- bin/rhc-user-info
|
404
420
|
- bin/rhc-create-domain
|
405
421
|
- bin/rhc-ctl-app
|
406
|
-
- bin/rhc-domain-info
|
407
|
-
- bin/rhc-user-info
|
408
|
-
- bin/rhc-create-app
|
409
|
-
- bin/rhc
|
410
|
-
- bin/rhc-domain
|
411
422
|
- bin/rhc-ctl-domain
|
423
|
+
- bin/rhc-chk
|
412
424
|
- bin/rhc-app
|
425
|
+
- bin/rhc-create-app
|
426
|
+
- bin/rhc
|
427
|
+
- bin/rhc-sshkey
|
428
|
+
- bin/rhc-domain-info
|
429
|
+
- bin/rhc-snapshot
|
413
430
|
- bin/rhc-port-forward
|
414
431
|
homepage: https://github.com/openshift/rhc
|
415
432
|
licenses: []
|
@@ -429,18 +446,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
429
446
|
- - ! '>='
|
430
447
|
- !ruby/object:Gem::Version
|
431
448
|
version: '0'
|
432
|
-
segments:
|
433
|
-
- 0
|
434
|
-
hash: 4041780170327640202
|
435
449
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
436
450
|
none: false
|
437
451
|
requirements:
|
438
452
|
- - ! '>='
|
439
453
|
- !ruby/object:Gem::Version
|
440
454
|
version: '0'
|
441
|
-
segments:
|
442
|
-
- 0
|
443
|
-
hash: 4041780170327640202
|
444
455
|
requirements: []
|
445
456
|
rubyforge_project:
|
446
457
|
rubygems_version: 1.8.24
|
@@ -448,65 +459,74 @@ signing_key:
|
|
448
459
|
specification_version: 3
|
449
460
|
summary: OpenShift Client Tools
|
450
461
|
test_files:
|
451
|
-
- spec/
|
462
|
+
- spec/spec_helper.rb
|
463
|
+
- spec/coverage_helper.rb
|
464
|
+
- spec/rhc/json_spec.rb
|
465
|
+
- spec/rhc/rest_spec.rb
|
452
466
|
- spec/rhc/helpers_spec.rb
|
453
|
-
- spec/rhc/config_spec.rb
|
454
467
|
- spec/rhc/rest_client_spec.rb
|
455
|
-
- spec/rhc/
|
456
|
-
- spec/rhc/
|
457
|
-
- spec/rhc/
|
458
|
-
- spec/rhc/assets/foo.txt
|
459
|
-
- spec/rhc/assets/targz_corrupted.tar.gz
|
460
|
-
- spec/rhc/assets/targz_sample.tar.gz
|
461
|
-
- spec/rhc/command_spec.rb
|
462
|
-
- spec/rhc/commands/port-forward_spec.rb
|
468
|
+
- spec/rhc/wizard_spec.rb
|
469
|
+
- spec/rhc/config_spec.rb
|
470
|
+
- spec/rhc/cli_spec.rb
|
463
471
|
- spec/rhc/commands/tail_spec.rb
|
464
|
-
- spec/rhc/commands/sshkey_spec.rb
|
465
|
-
- spec/rhc/commands/setup_spec.rb
|
466
|
-
- spec/rhc/commands/app_spec.rb
|
467
|
-
- spec/rhc/commands/alias_spec.rb
|
468
|
-
- spec/rhc/commands/threaddump_spec.rb
|
469
472
|
- spec/rhc/commands/domain_spec.rb
|
470
|
-
- spec/rhc/commands/
|
473
|
+
- spec/rhc/commands/apps_spec.rb
|
474
|
+
- spec/rhc/commands/git_clone_spec.rb
|
471
475
|
- spec/rhc/commands/server_spec.rb
|
476
|
+
- spec/rhc/commands/app_spec.rb
|
477
|
+
- spec/rhc/commands/setup_spec.rb
|
478
|
+
- spec/rhc/commands/port_forward_spec.rb
|
479
|
+
- spec/rhc/commands/account_spec.rb
|
472
480
|
- spec/rhc/commands/snapshot_spec.rb
|
481
|
+
- spec/rhc/commands/alias_spec.rb
|
482
|
+
- spec/rhc/commands/cartridge_spec.rb
|
483
|
+
- spec/rhc/commands/sshkey_spec.rb
|
484
|
+
- spec/rhc/commands/threaddump_spec.rb
|
485
|
+
- spec/rhc/assets/foo.txt
|
486
|
+
- spec/rhc/assets/targz_corrupted.tar.gz
|
487
|
+
- spec/rhc/assets/targz_sample.tar.gz
|
488
|
+
- spec/rhc/command_spec.rb
|
489
|
+
- spec/rhc/rest_application_spec.rb
|
490
|
+
- spec/rhc/targz_spec.rb
|
473
491
|
- spec/rhc/context_spec.rb
|
474
|
-
- spec/rhc/
|
475
|
-
- spec/
|
476
|
-
- spec/
|
492
|
+
- spec/rhc/auth_spec.rb
|
493
|
+
- spec/wizard_spec_helper.rb
|
494
|
+
- spec/keys/example.pem
|
495
|
+
- spec/keys/server.pem
|
496
|
+
- spec/keys/example_private.pem
|
477
497
|
- spec/rest_spec_helper.rb
|
478
|
-
- spec/
|
479
|
-
-
|
480
|
-
- features/
|
481
|
-
- features/
|
498
|
+
- spec/spec.opts
|
499
|
+
- features/multiple_cartridge.feature
|
500
|
+
- features/domain.feature
|
501
|
+
- features/verify.feature
|
502
|
+
- features/cartridge.feature
|
503
|
+
- features/client.feature
|
482
504
|
- features/support/env.rb
|
505
|
+
- features/support/key2.pub
|
506
|
+
- features/support/key1
|
483
507
|
- features/support/key1.pub
|
484
508
|
- features/support/before_hooks.rb
|
485
|
-
- features/support/assumptions.rb
|
486
|
-
- features/support/key2
|
487
509
|
- features/support/key3.pub
|
488
|
-
- features/support/key2
|
489
|
-
- features/
|
490
|
-
- features/
|
491
|
-
- features/
|
510
|
+
- features/support/key2
|
511
|
+
- features/support/assumptions.rb
|
512
|
+
- features/application.feature
|
513
|
+
- features/sshkey.feature
|
514
|
+
- features/geared_application.feature
|
515
|
+
- features/scaled_application.feature
|
492
516
|
- features/step_definitions/cartridge_steps.rb
|
517
|
+
- features/step_definitions/application_steps.rb
|
518
|
+
- features/step_definitions/client_steps.rb
|
493
519
|
- features/step_definitions/domain_steps.rb
|
494
|
-
- features/
|
495
|
-
- features/verify.feature
|
496
|
-
- features/cartridge.feature
|
497
|
-
- features/application.feature
|
520
|
+
- features/step_definitions/sshkey_steps.rb
|
498
521
|
- features/lib/rhc_helper.rb
|
499
522
|
- features/lib/rhc_helper/httpify.rb
|
500
|
-
- features/lib/rhc_helper/persistable.rb
|
501
|
-
- features/lib/rhc_helper/loggable.rb
|
502
523
|
- features/lib/rhc_helper/domain.rb
|
503
|
-
- features/lib/rhc_helper/
|
524
|
+
- features/lib/rhc_helper/runnable.rb
|
525
|
+
- features/lib/rhc_helper/loggable.rb
|
504
526
|
- features/lib/rhc_helper/commandify.rb
|
527
|
+
- features/lib/rhc_helper/api.rb
|
505
528
|
- features/lib/rhc_helper/cartridge.rb
|
506
529
|
- features/lib/rhc_helper/app.rb
|
507
|
-
- features/lib/rhc_helper/
|
508
|
-
- features/
|
509
|
-
- features/client.feature
|
530
|
+
- features/lib/rhc_helper/persistable.rb
|
531
|
+
- features/lib/rhc_helper/sshkey.rb
|
510
532
|
- features/README.md
|
511
|
-
- features/scaled_application.feature
|
512
|
-
- features/geared_application.feature
|
data/lib/rhc/client.rb
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
require 'rhc/helpers'
|
2
|
-
|
3
|
-
class RHC::Client
|
4
|
-
def initialize() #auth info
|
5
|
-
end
|
6
|
-
|
7
|
-
include RHC::Helpers
|
8
|
-
|
9
|
-
def get(uri, headers={})
|
10
|
-
# absolute uris are called directly, relative uris are called with
|
11
|
-
# the rest api root, and server relative uris are called against the
|
12
|
-
# host. Allow simple templatization via t()
|
13
|
-
end
|
14
|
-
def t(uri, opts)
|
15
|
-
# templatize uri using AddressableTemplate and opts
|
16
|
-
end
|
17
|
-
end
|