# File lib/openshift-origin-controller/app/models/application.rb, line 220 def self.find_by_gear_uuid(gear_uuid) hash = OpenShift::DataStore.instance.find_by_gear_uuid(gear_uuid) return nil unless hash user = CloudUser.hash_to_obj hash user.applications.each do |next_app| next_app.gears.each do |gear| if gear.uuid == gear_uuid return next_app,gear end end end return nil end