rhc 1.4.8 → 1.5.13
Sign up to get free protection for your applications and to get access to all the features.
- data/features/application.feature +1 -0
- data/features/lib/rhc_helper/app.rb +5 -3
- data/features/lib/rhc_helper/commandify.rb +2 -1
- data/features/step_definitions/application_steps.rb +2 -1
- data/features/support/env.rb +4 -1
- data/lib/rhc/auth/basic.rb +18 -13
- data/lib/rhc/auth/token.rb +98 -0
- data/lib/rhc/auth/token_store.rb +51 -0
- data/lib/rhc/auth.rb +3 -1
- data/lib/rhc/command_runner.rb +1 -0
- data/lib/rhc/commands/account.rb +47 -1
- data/lib/rhc/commands/alias.rb +2 -4
- data/lib/rhc/commands/app.rb +23 -18
- data/lib/rhc/commands/authorization.rb +93 -0
- data/lib/rhc/commands/base.rb +11 -3
- data/lib/rhc/commands/cartridge.rb +8 -16
- data/lib/rhc/commands/git_clone.rb +2 -3
- data/lib/rhc/commands/port_forward.rb +10 -11
- data/lib/rhc/commands/setup.rb +4 -1
- data/lib/rhc/commands/snapshot.rb +4 -3
- data/lib/rhc/commands/tail.rb +3 -4
- data/lib/rhc/commands/threaddump.rb +1 -2
- data/lib/rhc/commands.rb +37 -3
- data/lib/rhc/config.rb +10 -1
- data/lib/rhc/context_helper.rb +5 -1
- data/lib/rhc/core_ext.rb +10 -0
- data/lib/rhc/exceptions.rb +0 -12
- data/lib/rhc/git_helpers.rb +12 -0
- data/lib/rhc/helpers.rb +31 -1
- data/lib/rhc/output_helpers.rb +19 -3
- data/lib/rhc/rest/api.rb +2 -1
- data/lib/rhc/rest/application.rb +5 -4
- data/lib/rhc/rest/authorization.rb +10 -0
- data/lib/rhc/rest/base.rb +6 -1
- data/lib/rhc/rest/client.rb +243 -122
- data/lib/rhc/rest/domain.rb +0 -15
- data/lib/rhc/rest/gear_group.rb +0 -1
- data/lib/rhc/rest/mock.rb +118 -16
- data/lib/rhc/rest/user.rb +0 -1
- data/lib/rhc/rest.rb +28 -8
- data/lib/rhc/ssh_helpers.rb +5 -2
- data/lib/rhc/tar_gz.rb +16 -5
- data/lib/rhc/usage_templates/help.erb +1 -1
- data/lib/rhc/wizard.rb +54 -10
- data/spec/coverage_helper.rb +9 -0
- data/spec/rhc/auth_spec.rb +229 -22
- data/spec/rhc/cli_spec.rb +15 -0
- data/spec/rhc/command_spec.rb +100 -8
- data/spec/rhc/commands/account_spec.rb +75 -1
- data/spec/rhc/commands/app_spec.rb +23 -5
- data/spec/rhc/commands/authorization_spec.rb +120 -0
- data/spec/rhc/commands/domain_spec.rb +2 -2
- data/spec/rhc/commands/git_clone_spec.rb +24 -0
- data/spec/rhc/commands/port_forward_spec.rb +22 -23
- data/spec/rhc/commands/server_spec.rb +2 -2
- data/spec/rhc/commands/setup_spec.rb +12 -0
- data/spec/rhc/config_spec.rb +7 -3
- data/spec/rhc/helpers_spec.rb +62 -9
- data/spec/rhc/rest_application_spec.rb +24 -0
- data/spec/rhc/rest_client_spec.rb +66 -56
- data/spec/rhc/rest_spec.rb +11 -2
- data/spec/rhc/wizard_spec.rb +61 -12
- data/spec/spec_helper.rb +125 -42
- data/spec/wizard_spec_helper.rb +1 -0
- metadata +9 -3
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.5.13
|
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: 2013-
|
12
|
+
date: 2013-03-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: net-ssh
|
@@ -252,10 +252,13 @@ files:
|
|
252
252
|
- lib/rhc/commands/server.rb
|
253
253
|
- lib/rhc/commands/app.rb
|
254
254
|
- lib/rhc/commands/base.rb
|
255
|
+
- lib/rhc/commands/authorization.rb
|
255
256
|
- lib/rhc/commands/tail.rb
|
256
257
|
- lib/rhc/commands/cartridge.rb
|
257
258
|
- lib/rhc/helpers.rb
|
258
259
|
- lib/rhc/auth/basic.rb
|
260
|
+
- lib/rhc/auth/token_store.rb
|
261
|
+
- lib/rhc/auth/token.rb
|
259
262
|
- lib/rhc/exceptions.rb
|
260
263
|
- lib/rhc/context_helper.rb
|
261
264
|
- lib/rhc/commands.rb
|
@@ -283,6 +286,7 @@ files:
|
|
283
286
|
- lib/rhc/rest/domain.rb
|
284
287
|
- lib/rhc/rest/user.rb
|
285
288
|
- lib/rhc/rest/base.rb
|
289
|
+
- lib/rhc/rest/authorization.rb
|
286
290
|
- lib/rhc/rest/cartridge.rb
|
287
291
|
- lib/rhc/rest/gear_group.rb
|
288
292
|
- lib/rhc.rb
|
@@ -309,6 +313,7 @@ files:
|
|
309
313
|
- spec/rhc/commands/cartridge_spec.rb
|
310
314
|
- spec/rhc/commands/sshkey_spec.rb
|
311
315
|
- spec/rhc/commands/server_spec.rb
|
316
|
+
- spec/rhc/commands/authorization_spec.rb
|
312
317
|
- spec/rhc/commands/port_forward_spec.rb
|
313
318
|
- spec/rhc/commands/threaddump_spec.rb
|
314
319
|
- spec/rhc/commands/apps_spec.rb
|
@@ -395,7 +400,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
395
400
|
version: '0'
|
396
401
|
requirements: []
|
397
402
|
rubyforge_project:
|
398
|
-
rubygems_version: 1.8.
|
403
|
+
rubygems_version: 1.8.25
|
399
404
|
signing_key:
|
400
405
|
specification_version: 3
|
401
406
|
summary: OpenShift Client Tools
|
@@ -412,6 +417,7 @@ test_files:
|
|
412
417
|
- spec/rhc/commands/cartridge_spec.rb
|
413
418
|
- spec/rhc/commands/sshkey_spec.rb
|
414
419
|
- spec/rhc/commands/server_spec.rb
|
420
|
+
- spec/rhc/commands/authorization_spec.rb
|
415
421
|
- spec/rhc/commands/port_forward_spec.rb
|
416
422
|
- spec/rhc/commands/threaddump_spec.rb
|
417
423
|
- spec/rhc/commands/apps_spec.rb
|