Skip to content

Instantly share code, notes, and snippets.

@chef
Created October 29, 2009 17:38
Show Gist options
  • Save chef/221630 to your computer and use it in GitHub Desktop.
Save chef/221630 to your computer and use it in GitHub Desktop.
@user_object_id = if id_type == 'auth' && !config[:object_id].nil?
user_object_id = auth_id_to_user_id(config[:object_id])
STDERR.puts "user object id: #{user_object_id}"
user_object_id
else
config[:object_id] || if user_object_type && object_name
user_object_id = object_id_from_name_and_type(object_name,user_object_type)
user_object_id
else
nil
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment