Class: OffTheGrid::SubmitHost

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

Overview

A class to represent SGE Submit 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 submit hosts



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

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