Method: Gemfire::ApplicationCodeImages#create

Defined in:
lib/vas/gemfire/application_code_images.rb

#create(path, name, version) ⇒ ApplicationCodeImage

Creates a new application code image by uploading a file and assigning it a name and version

Parameters:

  • path (String)

    the path of the file to upload

  • name (String)

    the name of the application code

  • version (String)

    the version of the application code

Returns:



34
35
36
# File 'lib/vas/gemfire/application_code_images.rb', line 34

def create(path, name, version)
  ApplicationCodeImage.new(client.post_image(location, path, { :name => name, :version => version }), client)
end