Method: WebServer::InstallationImages#create

Defined in:
lib/vas/web_server/installation_images.rb

#create(path, version, architecture, operating_system) ⇒ InstallationImage

Creates an installation image by uploading a file to the server and assigning it a version, architecture, and operating system

Parameters:

  • the path of the file to upload

  • the installation image’s version

  • the installation image’s architecture

  • the installation image’s operating system

Returns:

  • the new installation image



36
37
38
39
40
# File 'lib/vas/web_server/installation_images.rb', line 36

def create(path, version, architecture, operating_system)
  create_image(path, { :version => version,
                       :architecture => architecture,
                       'operating-system' => operating_system })
end