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

Version Path
redhat_access-2.9.1 app/controllers/redhat_access/configuration_controller.rb
redhat_access-2.8.1 app/controllers/redhat_access/configuration_controller.rb
redhat_access-2.2.20 app/controllers/redhat_access/configuration_controller.rb
redhat_access-2.2.19 app/controllers/redhat_access/configuration_controller.rb
redhat_access-2.2.18 app/controllers/redhat_access/configuration_controller.rb
redhat_access-2.2.17 app/controllers/redhat_access/configuration_controller.rb
redhat_access-2.2.16 app/controllers/redhat_access/configuration_controller.rb
redhat_access-2.2.15 app/controllers/redhat_access/configuration_controller.rb
redhat_access-2.2.14 app/controllers/redhat_access/configuration_controller.rb
redhat_access-2.2.13 app/controllers/redhat_access/configuration_controller.rb
redhat_access-2.2.12 app/controllers/redhat_access/configuration_controller.rb
redhat_access-2.2.11 app/controllers/redhat_access/configuration_controller.rb
redhat_access-2.2.10 app/controllers/redhat_access/configuration_controller.rb
redhat_access-2.2.9 app/controllers/redhat_access/configuration_controller.rb
redhat_access-2.2.8 app/controllers/redhat_access/configuration_controller.rb
redhat_access-2.2.7 app/controllers/redhat_access/configuration_controller.rb
redhat_access-2.1.10 app/controllers/redhat_access/configuration_controller.rb
redhat_access-2.0.17 app/controllers/redhat_access/configuration_controller.rb
redhat_access-2.0.16 app/controllers/redhat_access/configuration_controller.rb
redhat_access-2.1.9 app/controllers/redhat_access/configuration_controller.rb