Class: OffTheGrid::AdminHost

Inherits:
Host
  • Object
show all
Defined in:
lib/off_the_grid/admin_host.rb

Overview

A class to represent SGE Admin Hosts

Instance Attribute Summary

Attributes inherited from Host

#hostname

Class Method Summary collapse

Methods inherited from Host

#initialize, #name, #name=

Methods included from GridResource

#<=>, #delete, #extract_detail, #new?, #save, #validate_before_delete, #validate_before_save

Constructor Details

This class inherits a constructor from OffTheGrid::Host

Class Method Details

.listObject

Get the list of SGE adminstrative hosts



5
6
7
# File 'lib/off_the_grid/admin_host.rb', line 5

def self.list
  `qconf -sh`.chomp.split("\n").sort.collect { |name| new(name) }
end