Sha256: 5355234ed61de7ae8f1dc22941c70f043b2142891e1ad578994434845039ee17
Contents?: true
Size: 976 Bytes
Versions: 4
Compression:
Stored size: 976 Bytes
Contents
module Katello module Pulp class Server def self.config(url, user_remote_id) uri = URI.parse(url) runcible_params = { :url => "#{uri.scheme}://#{uri.host.downcase}", :api_path => uri.path, :user => user_remote_id, :timeout => SETTINGS[:katello][:rest_client_timeout], :open_timeout => SETTINGS[:katello][:rest_client_timeout], :logging => { :logger => ::Foreman::Logging.logger('katello/pulp_rest'), :exception => true, :info => true, :debug => true }, :cert_auth => { :ssl_client_cert => ::Cert::Certs.ssl_client_cert, :ssl_client_key => ::Cert::Certs.ssl_client_key } } if (ca_cert = SETTINGS[:katello][:pulp][:ca_cert_file]) runcible_params[:ca_cert_file] = ca_cert end Runcible::Instance.new(runcible_params) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems