# File lib/rhc/context_helper.rb, line 7 def app_context debug "Getting app context" uuid = git_config_get "rhc.app-uuid" # proof of concept - we shouldn't be traversing # the broker should expose apis for getting the application via a uuid rest_client.domains.each do |rest_domain| rest_domain.applications.each do |rest_app| return rest_app.name if rest_app.uuid == uuid end end debug "Couldn't find app with UUID == #{uuid}" nil end