Sha256: 16bb2d659184ad41fc8861130781551815ed5d24d37675567cfcb4282914a9fd
Contents?: true
Size: 602 Bytes
Versions: 51
Compression:
Stored size: 602 Bytes
Contents
require_dependency "redhat_access/application_controller" require_dependency "redhat_access/version" module RedhatAccess class ConfigurationController < ApplicationController def index strata_host = REDHAT_ACCESS_CONFIG[:strata_host] if strata_host.nil? strata_host = 'access.redhat.com' end client_id = "foreman_plugin_#{REDHAT_ACCESS_CONFIG[:deployment]}_#{RedhatAccess::VERSION}" render :json => { :strataHostName => strata_host,:strataClientId => client_id }.to_json, :layout => false end def api_request? true end end end
Version data entries
51 entries across 51 versions & 1 rubygems