Class: CF::UAA::UserCli
- Defined in:
- lib/uaa/cli/user.rb
Constant Summary collapse
- USER_INFO_OPTS =
[:givenName, :familyName, :emails, :phoneNumbers]
Instance Method Summary collapse
Methods inherited from CommonCli
#askd, #auth_header, #clientid, #clientname, #clientsecret, #complain, #debug?, #handle_request, #passcode, #scim_common_list, #scim_get_object, #scim_request, #trace?, #update_target_info, #username, #userpwd, #verified_pwd
Methods inherited from Topic
#add_command, #ask, #ask_pwd, commands, define_option, desc, #gripe, #help_col_start, #initialize, #opt_help, #opt_strs, option_defs, #opts, #pp, #print_tree, #say, #say_cmd_helper, #say_command_help, #say_commands, #say_definition, #say_help, #terminal_columns, topic
Constructor Details
This class inherits a constructor from CF::UAA::Topic
Instance Method Details
#user_opts(info = {}) ⇒ Object
28 29 30 31 32 33 34 35 36 |
# File 'lib/uaa/cli/user.rb', line 28 def user_opts(info = {}) [:emails, :phoneNumbers].each do |o| next unless opts[o] info[o] = Util.arglist(opts[o]).each_with_object([]) { |v, a| a << {:value => v} } end n = [:givenName, :familyName].each_with_object({}) { |o, n| n[o] = opts[o] if opts[o] } info[:name] = n unless n.empty? info end |