Class: Gemfire::ApplicationCodeImages
- Inherits:
-
Shared::MutableCollection
- Object
- Shared::Resource
- Shared::Collection
- Shared::MutableCollection
- Gemfire::ApplicationCodeImages
- Defined in:
- lib/vas/gemfire/application_code_images.rb
Overview
Used to enumerate, create, and delete GemFire application code images.
Instance Attribute Summary
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#create(path, name, version) ⇒ ApplicationCodeImage
Creates a new application code image by uploading a file and assigning it a name and version.
-
#initialize(location, client) ⇒ ApplicationCodeImages
constructor
A new instance of ApplicationCodeImages.
Methods inherited from Shared::MutableCollection
Methods inherited from Shared::Collection
Constructor Details
#initialize(location, client) ⇒ ApplicationCodeImages
Returns a new instance of ApplicationCodeImages.
23 24 25 |
# File 'lib/vas/gemfire/application_code_images.rb', line 23 def initialize(location, client) super(location, client, 'application-code-images', ApplicationCodeImage) end |
Instance Method Details
#create(path, name, version) ⇒ ApplicationCodeImage
Creates a new application code image by uploading a file and assigning it a name and version
34 35 36 |
# File 'lib/vas/gemfire/application_code_images.rb', line 34 def create(path, name, version) create_image(path, { :name => name, :version => version }) end |