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

View differences:

src/oca/ruby/OpenNebula/VirtualMachine.rb
27 27
            :action   => "vm.action",
28 28
            :migrate  => "vm.migrate",
29 29
            :deploy   => "vm.deploy",
30
            :savedisk => "vm.savedisk"
30
            :savedisk => "vm.savedisk",
31
            :chown    => "vm.chown"
31 32
        }
32 33

  
33 34
        VM_STATE=%w{INIT PENDING HOLD ACTIVE STOPPED SUSPENDED DONE FAILED}
......
224 225
            return rc
225 226
        end
226 227

  
228
        # Changes the owner/group
229
        # uid:: _Integer_ the new owner id. Set to -1 to leave the current one
230
        # gid:: _Integer_ the new group id. Set to -1 to leave the current one
231
        # [return] nil in case of success or an Error object
232
        def chown(uid, gid)
233
            super(VM_METHODS[:chown], uid, gid)
234
        end
235

  
227 236
        #######################################################################
228 237
        # Helpers to get VirtualMachine information
229 238
        #######################################################################

Also available in: Unified diff