Class: OodCluster::Servers::Moab
- Inherits:
-
OodCluster::Server
- Object
- OodCluster::Server
- OodCluster::Servers::Moab
- Defined in:
- lib/ood_cluster/servers/moab.rb
Overview
This class defines a Moab server / client software installation
Instance Attribute Summary collapse
-
#bin ⇒ Pathname
readonly
The path to the installation location for this software’s binaries.
-
#lib ⇒ Pathname
readonly
The path to the installation location for this software’s libraries.
-
#moabhomedir ⇒ Pathname
readonly
The required Moab environment variable.
-
#version ⇒ String
readonly
The version of this software.
Attributes inherited from OodCluster::Server
Instance Method Summary collapse
-
#initialize(lib: "", bin: "", version:, moabhomedir: ENV['MOABHOMEDIR'], **kwargs) ⇒ Moab
constructor
A new instance of Moab.
-
#to_h ⇒ Hash
Convert object to hash.
Methods inherited from OodCluster::Server
Methods included from JsonSerializer
Constructor Details
#initialize(lib: "", bin: "", version:, moabhomedir: ENV['MOABHOMEDIR'], **kwargs) ⇒ Moab
Returns a new instance of Moab.
32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/ood_cluster/servers/moab.rb', line 32 def initialize(lib: "", bin: "", version:, moabhomedir: ENV['MOABHOMEDIR'], **kwargs) super(kwargs) # installation path @lib = Pathname.new(lib.to_s) @bin = Pathname.new(bin.to_s) # version number @version = version.to_s # necessary moab environment variable @moabhomedir = Pathname.new(moabhomedir.to_s) end |
Instance Attribute Details
#bin ⇒ Pathname (readonly)
The path to the installation location for this software’s binaries
15 16 17 |
# File 'lib/ood_cluster/servers/moab.rb', line 15 def bin @bin end |
#lib ⇒ Pathname (readonly)
The path to the installation location for this software’s libraries
9 10 11 |
# File 'lib/ood_cluster/servers/moab.rb', line 9 def lib @lib end |
#moabhomedir ⇒ Pathname (readonly)
The required Moab environment variable
25 26 27 |
# File 'lib/ood_cluster/servers/moab.rb', line 25 def moabhomedir @moabhomedir end |
#version ⇒ String (readonly)
The version of this software
19 20 21 |
# File 'lib/ood_cluster/servers/moab.rb', line 19 def version @version end |
Instance Method Details
#to_h ⇒ Hash
Convert object to hash
48 49 50 |
# File 'lib/ood_cluster/servers/moab.rb', line 48 def to_h super.merge lib: @lib, bin: @bin, version: @version, moabhomedir: @moabhomedir end |