Method: OpenNebula::User#chgrp

Defined in:
lib/OpenNebula/User.rb

#chgrp(gid) ⇒ Object

Changes the main group

gid

Integer the new group id. Set to -1 to leave the current one

return

nil in case of success or an Error object



122
123
124
125
126
127
128
129
# File 'lib/OpenNebula/User.rb', line 122

def chgrp(gid)
    return Error.new('ID not defined') if !@pe_id

    rc = @client.call(USER_METHODS[:chgrp],@pe_id, gid)
    rc = nil if !OpenNebula.is_error?(rc)

    return rc
end