lib/fire_cloud_client.rb
# get health check on individual FireCloud services by name from FireCloudClient#api_status
# Should not be used to assess overall API health, but rather a quick thumbs up/down on a specific service
#
# * *params*
#   #   - +services+ (Array) => array of service names (from api_status['systems']), passed with splat operator, so should not be an actual array
# * *return*
#   - +Boolean+ indication of availability of requested FireCloud service
get health check on individual FireCloud services by name from FireCloudClient#api_status
Should not be used to assess overall API health, but rather a quick thumbs up/down on a specific service

*params
- +services+ (Array) => array of service names (from api_status['systems']), passed with splat operator, so should not be an actual array
*return
+Boolean+ indication of availability of requested FireCloud service
get health check on individual FireCloud services by name from FireCloudClient#api_status Should not be used to assess overall API health but rather a quick thumbs up / down on a specific service * params - + services + ( Array ) = > array of service names ( from api_status [ ' systems ' ] ) passed with splat operator so should not be an actual array * return + Boolean + indication of availability of requested FireCloud service
def services_available?(*services)
    api_status = self.api_status
    if api_status.is_a?(Hash)
      api_ok = true
      services.each do |service|
        if api_status['systems'].present? && api_status['systems'][service].present? && api_status['systems'][service]['ok']
          next
        else
          api_ok = false
          break
        end
      end
      api_ok
    else
      false
    end
  end
def services_available? ( * services ) api_status = self . api_status if api_status . is_a? ( Hash ) api_ok = true services . each do | service | if api_status [ 'systems' ] . present? && api_status [ 'systems' ] [ service ] . present? && api_status [ 'systems' ] [ service ] [ 'ok' ] next else api_ok = false break end end api_ok else false end end
get health check on individual FireCloud services by name from FireCloudClient#api_status
Should not be used to assess overall API health, but rather a quick thumbs up/down on a specific service
get health check on individual FireCloud services by name from FireCloudClient#api_status Should not be used to assess overall API health but rather a quick thumbs up / down on a specific service
services
<not_specific>