Sha256: 387f8709f7014e541eef8d9e46f9a5835fe7daf9b58a5aeecbebb2d168498608
Contents?: true
Size: 635 Bytes
Versions: 58
Compression:
Stored size: 635 Bytes
Contents
module ForemanInventoryUpload class CloudStatusController < ::ApplicationController def index organizations = User.current.my_organizations ping_service = ForemanRhCloud::CloudPingService.new(organizations, logger) ping_result = ping_service.ping ping_result[:cert_auth] = ping_result[:cert_auth].map do |org, status_hash| status_hash.merge( { org_id: org.id, org_name: org.name, } ) end render json: { ping: ping_result, }, status: :ok end def logger Foreman::Logging.logger('app') end end end
Version data entries
58 entries across 58 versions & 1 rubygems