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

View differences:

src/oca/ruby/OpenNebula/Image.rb
30 30
            :enable      => "image.enable",
31 31
            :publish     => "image.publish",
32 32
            :persistent  => "image.persistent",
33
            :delete      => "image.delete"
33
            :delete      => "image.delete",
34
            :chown       => "image.chown"
34 35
        }
35 36

  
36 37
        IMAGE_STATES=%w{INIT READY USED DISABLED LOCKED ERROR}
......
142 143
        def delete()
143 144
            super(IMAGE_METHODS[:delete])
144 145
        end
145
    
146

  
147
        # Changes the owner/group
148
        # uid:: _Integer_ the new owner id. Set to -1 to leave the current one
149
        # gid:: _Integer_ the new group id. Set to -1 to leave the current one
150
        # [return] nil in case of success or an Error object
151
        def chown(uid, gid)
152
            super(IMAGE_METHODS[:chown], uid, gid)
153
        end
146 154

  
147 155
        #######################################################################
148 156
        # Helpers to get Image information

Also available in: Unified diff