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

View differences:

src/oca/ruby/OpenNebula/Template.rb
27 27
            :update      => "template.update",
28 28
            :rmattr      => "template.rmattr",
29 29
            :publish     => "template.publish",
30
            :delete      => "template.delete"
30
            :delete      => "template.delete",
31
            :chown       => "template.chown"
31 32
        }
32 33

  
33 34
        # Creates a Template description with just its identifier
......
103 104
            set_publish(false)
104 105
        end
105 106

  
107
        # Changes the owner/group
108
        # uid:: _Integer_ the new owner id. Set to -1 to leave the current one
109
        # gid:: _Integer_ the new group id. Set to -1 to leave the current one
110
        # [return] nil in case of success or an Error object
111
        def chown(uid, gid)
112
            super(TEMPLATE_METHODS[:chown], uid, gid)
113
        end
114

  
106 115
        # ---------------------------------------------------------------------
107 116
        # Helpers to get Template information
108 117
        # ---------------------------------------------------------------------

Also available in: Unified diff