class Opc::OpcUserShow
Public Instance Methods
run()
click to toggle source
# File lib/chef/knife/opc_user_show.rb, line 31 def run user_name = @name_args[0] results = root_rest.get("users/#{user_name}") if config[:with_orgs] orgs = root_rest.get("users/#{user_name}/organizations") results["organizations"] = orgs.map { |o| o["organization"]["name"] } end ui.output results end