class OodCluster::Servers::Torque
This class defines a Torque
server / client software installation
Attributes
bin[R]
The path to the installation location for this software's binaries @example Locally installed Torque
v5.1.1
my_software.bin #=> "/usr/local/torque/5.1.1/bin"
@return [Pathname] the path to software binaries
lib[R]
The path to the installation location for this software's libraries @example Locally installed Torque
v5.1.1
my_software.lib #=> "/usr/local/torque/5.1.1/lib"
@return [Pathname] the path to software libraries
version[R]
The version of this software @return [String] version of software
Public Class Methods
new(lib: "", bin: "", version:, **kwargs)
click to toggle source
@param (see Server#initialize) @param lib [#to_s] installation path of client software libraries @param bin [#to_s] installation path of client software binaries @param version [#to_s] version of client software
Calls superclass method
OodCluster::Server::new
# File lib/ood_cluster/servers/torque.rb, line 25 def initialize(lib: "", bin: "", version:, **kwargs) super(kwargs) # installation path @lib = Pathname.new(lib.to_s) @bin = Pathname.new(bin.to_s) # version number @version = version.to_s end
Public Instance Methods
to_h()
click to toggle source
Convert object to hash @return [Hash] the hash describing this object
Calls superclass method
OodCluster::Server#to_h
# File lib/ood_cluster/servers/torque.rb, line 38 def to_h super.merge lib: @lib, bin: @bin, version: @version end