Class: Shared::Installation Abstract
- Includes:
- Deletable
- Defined in:
- lib/vas/shared/installations.rb
Overview
An installation of a middleware component. Created from an installation image. Once created, an installation is used when creating a new instance and provides the binaries that the instance uses at runtime
Direct Known Subclasses
Gemfire::Installation, RabbitMq::Installation, Sqlfire::Installation, TcServer::Installation, WebServer::Installation
Instance Attribute Summary collapse
-
#version ⇒ String
readonly
The installation’s version.
Attributes included from Deletable
Attributes inherited from Resource
Instance Method Summary collapse
-
#group ⇒ Group
The group that contains the installation.
-
#initialize(location, client, installation_image_class, group_class) ⇒ Installation
constructor
A new instance of Installation.
-
#installation_image ⇒ InstallationImage
The installation image that was used to create the installation.
-
#to_s ⇒ String
A string representation of the installation.
Methods included from Deletable
Constructor Details
#initialize(location, client, installation_image_class, group_class) ⇒ Installation
Returns a new instance of Installation.
49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/vas/shared/installations.rb', line 49 def initialize(location, client, installation_image_class, group_class) super(location, client) @installation_image_location = Util::LinkUtils.get_link_href(details, 'installation-image') @group_location = Util::LinkUtils.get_link_href(details, 'group') @installation_image_class = installation_image_class @group_class = group_class @version = details['version'] end |
Instance Attribute Details
#version ⇒ String (readonly)
Returns the installation’s version.
46 47 48 |
# File 'lib/vas/shared/installations.rb', line 46 def version @version end |
Instance Method Details
#group ⇒ Group
Returns the group that contains the installation.
62 63 64 |
# File 'lib/vas/shared/installations.rb', line 62 def group @group ||= @group_class.new(@group_location, client) end |
#installation_image ⇒ InstallationImage
Returns the installation image that was used to create the installation.
67 68 69 |
# File 'lib/vas/shared/installations.rb', line 67 def installation_image @installation_image ||= @installation_image_class.new(@installation_image_location, client) end |
#to_s ⇒ String
Returns a string representation of the installation.
72 73 74 |
# File 'lib/vas/shared/installations.rb', line 72 def to_s #:nodoc: "#<#{self.class} version='#@version'>" end |