Class: OffTheGrid::AdminHost
- Defined in:
- lib/off_the_grid/admin_host.rb
Overview
A class to represent SGE Admin Hosts
Instance Attribute Summary
Attributes inherited from Host
Class Method Summary collapse
-
.list ⇒ Object
Get the list of SGE adminstrative hosts.
Methods inherited from Host
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
.list ⇒ Object
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 |