Class: OpsManager::ProductInstallation
- Inherits:
-
Object
- Object
- OpsManager::ProductInstallation
- Defined in:
- lib/ops_manager/product_installation.rb
Instance Attribute Summary collapse
-
#guid ⇒ Object
readonly
Returns the value of attribute guid.
Class Method Summary collapse
Instance Method Summary collapse
- #current_version ⇒ Object
-
#initialize(guid, version, prepared) ⇒ ProductInstallation
constructor
A new instance of ProductInstallation.
- #prepared? ⇒ Boolean
Constructor Details
#initialize(guid, version, prepared) ⇒ ProductInstallation
Returns a new instance of ProductInstallation.
7 8 9 |
# File 'lib/ops_manager/product_installation.rb', line 7 def initialize(guid, version, prepared) @guid, @version, @prepared = guid, version, prepared end |
Instance Attribute Details
#guid ⇒ Object (readonly)
Returns the value of attribute guid.
5 6 7 |
# File 'lib/ops_manager/product_installation.rb', line 5 def guid @guid end |
Class Method Details
.find(name) ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/ops_manager/product_installation.rb', line 20 def find(name) is = installation_settings_for(name) new( is.fetch('guid'), is.fetch('product_version'), is.fetch('prepared') ) if is end |
Instance Method Details
#current_version ⇒ Object
15 16 17 |
# File 'lib/ops_manager/product_installation.rb', line 15 def current_version Semver.new(@version) end |
#prepared? ⇒ Boolean
11 12 13 |
# File 'lib/ops_manager/product_installation.rb', line 11 def prepared? @prepared end |