Method: Amazon#fetch_monitor

Defined in:
lib/cluster/infrastructures/amazon.rb

#fetch_monitorObject

[View source]

309
310
311
312
313
314
# File 'lib/cluster/infrastructures/amazon.rb', line 309

def fetch_monitor
  res = sdb.select "select * from #{domain} where entry = 'monitor'"
  return nil if res[:items].empty?
  monitor = self.class.from_sdb_results(res).first
  bucket.get(monitor['key'])
end