Sha256: 0f0ccd9138280b09884d0b722d5337ea20ec31863985f07de97ffb817ec5d5fc
Contents?: true
Size: 426 Bytes
Versions: 3
Compression:
Stored size: 426 Bytes
Contents
module OffTheGrid # A class to represent SGE Submit Hosts class SubmitHost < Host # Get the list of SGE submit hosts def self.list `qconf -ss`.chomp.split("\n").sort.collect { |name| new(name) } end private # Add an SGE submit host def add system("qconf -as #{hostname}") end # Remove an SGE submit host def remove system("qconf -ds #{hostname}") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
off_the_grid-0.0.6 | lib/off_the_grid/submit_host.rb |
off_the_grid-0.0.5 | lib/off_the_grid/submit_host.rb |
off_the_grid-0.0.4 | lib/off_the_grid/submit_host.rb |