# File lib/aeolus_image/model/warehouse/warehouse_model.rb, line 120 def where(query_string) begin self.set_warehouse_and_bucket if self.bucket.nil? self.warehouse.query(@bucket_name, query_string).xpath('/objects/object').map do |obj| self.new(self.bucket.object(obj.at_xpath('./key/text()').to_s)) end rescue RestClient::ResourceNotFound [] end end