opscode (owner)

Revisions

gist: 221630 Download_button fork
public
Public Clone URL: git://gist.github.com/221630.git
Embed All Files: show embed
Ruby #
1
2
3
4
5
6
7
8
9
10
11
12
13
      @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