cf-uaac 3.1.4 → 3.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ceef01d629cbe38d03cfb10efaa1aa00148cace7
4
- data.tar.gz: 94fa2bcc964a0bf540ad3e88bb75ffd5f276e879
3
+ metadata.gz: 12dfcebb4cbeeb7831b7db3152534c8b3aaf503e
4
+ data.tar.gz: ab23c73c86a1866d5bead7157e91906928c703f1
5
5
  SHA512:
6
- metadata.gz: a9859b220984a395a14ae08de49f14cfe696ac875f6a284f264053325de9acaed2ad438aa9f6c1ef0bf4fdd899e4d1768cbc2d597e01da3910ef5b5bd73d70ef
7
- data.tar.gz: ffb57562d844090b631259bac618e99b29b814af432b41cb0e7c23371c8ac2d9b293405d1c32dc18d671c170dcbacbbf2f8b0a25236e86fa2b30d079cd744b2f
6
+ metadata.gz: 12420bf4c65ff1ccb262a647d7bbe9ad029a2e89bb08582e844910fc910c9d44c64488e4cbea618651ac3964f1eced2e1151157a6cf8e1ad254a2e3bb326f305
7
+ data.tar.gz: ba5150f1ca56e16c36002d8badbb2245cf54e5912019df8f7aaac335ae0e967b4e9923ec124ae7219f358869914afe3fde33360def68e7aa38c96d85dadcf78a
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
39
39
  s.add_development_dependency "simplecov", "~> 0.8.2"
40
40
  s.add_development_dependency "simplecov-rcov", "~> 0.2.3"
41
41
  s.add_development_dependency "ci_reporter", "~> 1.9.2"
42
- s.add_runtime_dependency "cf-uaa-lib", "~> 3.2.4"
42
+ s.add_runtime_dependency "cf-uaa-lib", "~> 3.2.5"
43
43
  s.add_runtime_dependency "highline", "~> 1.6.21"
44
44
  s.add_runtime_dependency "eventmachine", "~> 1.0.3"
45
45
  s.add_runtime_dependency "launchy", "~> 2.4.2"
@@ -241,7 +241,9 @@ class BaseCli
241
241
  @output ||= $stdout
242
242
  @output.string = "" if @output.respond_to?(:string)
243
243
  args = Shellwords.split(args) if args.respond_to?(:split)
244
- @option_defs, @parser, orig = {}, OptionParser.new, args
244
+ @option_defs ||= {}
245
+ orig = args
246
+ @parser = OptionParser.new
245
247
  opts = @topics.each_with_object({}) do |tpc, o|
246
248
  tpc.option_defs.each do |k, optdef|
247
249
  @parser.on(*optdef) do |v|
@@ -69,7 +69,8 @@ class CommonCli < Topic
69
69
  def scim_request
70
70
  yield Scim.new(Config.target, auth_header, {
71
71
  skip_ssl_validation: Config.target_value(:skip_ssl_validation),
72
- ssl_ca_file: Config.target_value(:ca_cert) })
72
+ ssl_ca_file: Config.target_value(:ca_cert),
73
+ zone: opts[:zone] })
73
74
  rescue Exception => e
74
75
  complain e
75
76
  end
@@ -124,6 +125,7 @@ class MiscCli < CommonCli
124
125
  define_option :help, "--[no-]help", "-h", "display helpful information"
125
126
  define_option :version, "--[no-]version", "-v", "show version"
126
127
  define_option :config, "--config [string|file]", "file to get/save configuration information or yaml string"
128
+ define_option :zone, "-z", "--zone <subdomain>", "subdomain of zone to manage"
127
129
 
128
130
  desc "help [topic|command...]", "Display summary or details of command or topic" do |*args|
129
131
  # handle hidden command, output commands in form for bash completion
@@ -24,7 +24,7 @@ module CF::UAA
24
24
  class Cli < BaseCli
25
25
  @overview = "UAA Command Line Interface"
26
26
  @topics = [MiscCli, InfoCli, TokenCli, UserCli, GroupCli, ClientCli, CurlCli]
27
- @global_options = [:help, :version, :debug, :trace, :config]
27
+ @global_options = [:help, :version, :debug, :trace, :config, :zone]
28
28
 
29
29
  def self.configure(config_file = "", input = $stdin, output = $stdout,
30
30
  print_on_trace = false)
@@ -14,6 +14,6 @@
14
14
  # Cloud Foundry namespace
15
15
  module CF
16
16
  module UAA
17
- CLI_VERSION = "3.1.4"
17
+ CLI_VERSION = "3.1.5"
18
18
  end
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cf-uaac
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.4
4
+ version: 3.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Syer
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-10-16 00:00:00.000000000 Z
15
+ date: 2015-12-01 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bundler
@@ -104,14 +104,14 @@ dependencies:
104
104
  requirements:
105
105
  - - "~>"
106
106
  - !ruby/object:Gem::Version
107
- version: 3.2.4
107
+ version: 3.2.5
108
108
  type: :runtime
109
109
  prerelease: false
110
110
  version_requirements: !ruby/object:Gem::Requirement
111
111
  requirements:
112
112
  - - "~>"
113
113
  - !ruby/object:Gem::Version
114
- version: 3.2.4
114
+ version: 3.2.5
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: highline
117
117
  requirement: !ruby/object:Gem::Requirement