Method: OpenNebula::Image#update

Defined in:
lib/opennebula/image.rb

#update(new_template = nil, append = false) ⇒ nil, OpenNebula::Error

Replaces the template contents

Parameters:

  • new_template (String) (defaults to: nil)

    New template contents

  • append (true, false) (defaults to: false)

    True to append new attributes instead of replace the whole template

Returns:



130
131
132
# File 'lib/opennebula/image.rb', line 130

def update(new_template=nil, append=false)
    super(IMAGE_METHODS[:update], new_template, append ? 1 : 0)
end