Class: OodAppkit::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/ood_appkit/server.rb

Overview

An object that describes a server hosted by a given cluster

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host:, **_) ⇒ Server

Returns a new instance of Server.

Parameters:

  • host info



11
12
13
# File 'lib/ood_appkit/server.rb', line 11

def initialize(host:, **_)
  @host = host
end

Instance Attribute Details

#hostString (readonly)

The host information for this server object

Examples:

Host information for login node

"my_server.host" #=> "oakley.osc.edu"

Returns:

  • the host for this server



8
9
10
# File 'lib/ood_appkit/server.rb', line 8

def host
  @host
end