app/models/fire_cloud_client.rb
# determine if FireCloud api is currently up/available
#
# * *return*
#   - +Boolean+ indication of FireCloud current root status
determine if FireCloud api is currently up/available
*return
+Boolean+ indication of FireCloud current root status
determine if FireCloud api is currently up / available * return + Boolean + indication of FireCloud current root status
def api_available?
    begin
      response = self.api_status
      if response.is_a?(Hash) && response['ok']
        true
      else
        false
      end
    rescue => e
      false
    end
  end
def api_available? begin response = self . api_status if response . is_a? ( Hash ) && response [ 'ok' ] true else false end rescue => e false end end
determine if FireCloud api is currently up/available
 *return
 +Boolean+ indication of FireCloud current root status
determine if FireCloud api is currently up / available * return + Boolean + indication of FireCloud current root status