Method: Cluster#fetch_monitor
- Defined in:
- lib/cluster.rb
#fetch_monitor(output) ⇒ Object
221 222 223 224 225 226 227 228 229 230 231 232 |
# File 'lib/cluster.rb', line 221 def fetch_monitor(output) monitor = @sub.fetch_monitor unless monitor msg = "#{Cluster::NAME} cannot find any monitor information." $stderr.puts msg raise RuntimeError.new(msg) end File.open(output, 'w') {|f| f.write(monitor) } end |