Revision b0ddfd38 src/oca/ruby/OpenNebula/User.rb

View differences:

src/oca/ruby/OpenNebula/User.rb
25 25
            :info     => "user.info",
26 26
            :allocate => "user.allocate",
27 27
            :delete   => "user.delete",
28
            :passwd   => "user.passwd"
28
            :passwd   => "user.passwd",
29
            :chown    => "user.chown"
29 30
        }
30 31

  
31 32
        # Creates a User description with just its identifier
......
89 90
            return rc
90 91
        end
91 92

  
93
        # Changes the owner/group
94
        # gid:: _Integer_ the new group id. Set to -1 to leave the current one
95
        # [return] nil in case of success or an Error object
96
        def chgrp(gid)
97
            chown(USER_METHODS[:chown], -1, gid)
98
        end
99

  
92 100
        # ---------------------------------------------------------------------
93 101
        # Helpers to get User information
94 102
        # ---------------------------------------------------------------------

Also available in: Unified diff