client/lib/deltacloud/client/models/image.rb
# Launch the image using +Instance+#+create_instance+ method.
# This method is more strict in checking +HardwareProfile+
# and in case you use incompatible HWP it raise an error.
#
# - create_instance_opts -> +create_instance+ options
#
Launch the image using +Instance+#+create_instance+ method.
This method is more strict in checking +HardwareProfile+
and in case you use incompatible HWP it raise an error.


Launch the image using + Instance + # + create_instance + method . This method is more strict in checking + HardwareProfile + and in case you use incompatible HWP it raise an error .
def launch(create_instance_opts={})
      if hwp_id = create_instance_opts[:hwp_id]
        raise error(:incompatible_hardware_profile).new(
          "Profile '#{hwp_id}' is not compatible with this image."
        ) unless is_compatible?(hwp_id)
      end
      @client.create_instance(self._id, create_instance_opts)
    end
def launch ( create_instance_opts = { } ) if hwp_id = create_instance_opts [ :hwp_id ] raise error ( :incompatible_hardware_profile ) . new ( "Profile '#{hwp_id}' is not compatible with this image." ) unless is_compatible? ( hwp_id ) end @client . create_instance ( self . _id , create_instance_opts ) end
Launch the image using +Instance+#+create_instance+ method.
Launch the image using + Instance + # + create_instance + method .
create_instance_opts
<not_specific>