Revision 79432c7b

View differences:

src/cloud/common/CloudServer.rb
89 89
        return client
90 90
    end
91 91

  
92
    # Gets the data associated with a user
93
    # name:: _String_ the name of the user
94
    # [return] _Hash_ with the user data
95
    def get_user(name)
96
        user = nil
97

  
98
        @user_pool.info
99
        @user_pool.each{ |u|
100
            if u.name==name
101
                user=Hash.new
102

  
103
                user[:id]       = u.id
104
                user[:name]     = u.name
105
                user[:password] = u[:password]
106
            end
107
        }
108
        return user
109
   end
110

  
92 111
    ###########################################################################
93 112
    # Repository Methods
94 113
    ###########################################################################

Also available in: Unified diff