Sha256: 5166e7413a9dc5df3be0ef11ebd5a9e737cee9a78b5f9bb9d7e840eb7ed4c78c

Contents?: true

Size: 450 Bytes

Versions: 79

Compression:

Stored size: 450 Bytes

Contents

module ForemanOpenscap
  module OpenscapProxyExtensions
    extend ActiveSupport::Concern

    def openscap_proxy_api
      return @openscap_api if @openscap_api
      proxy_url = openscap_proxy.url if openscap_proxy
      raise ::Foreman::Exception.new(N_("No OpenSCAP proxy found for %{class} with id %{id}"), { :class => self.class, :id => id }) unless proxy_url
      @openscap_api = ::ProxyAPI::Openscap.new(:url => proxy_url)
    end
  end
end

Version data entries

79 entries across 79 versions & 1 rubygems

Version Path
foreman_openscap-10.1.0 app/models/concerns/foreman_openscap/openscap_proxy_extensions.rb
foreman_openscap-10.0.3 app/models/concerns/foreman_openscap/openscap_proxy_extensions.rb
foreman_openscap-10.0.2 app/models/concerns/foreman_openscap/openscap_proxy_extensions.rb
foreman_openscap-10.0.1 app/models/concerns/foreman_openscap/openscap_proxy_extensions.rb
foreman_openscap-10.0.0 app/models/concerns/foreman_openscap/openscap_proxy_extensions.rb
foreman_openscap-9.0.4 app/models/concerns/foreman_openscap/openscap_proxy_extensions.rb
foreman_openscap-9.0.3 app/models/concerns/foreman_openscap/openscap_proxy_extensions.rb
foreman_openscap-9.0.2 app/models/concerns/foreman_openscap/openscap_proxy_extensions.rb
foreman_openscap-9.0.1 app/models/concerns/foreman_openscap/openscap_proxy_extensions.rb
foreman_openscap-9.0.0 app/models/concerns/foreman_openscap/openscap_proxy_extensions.rb
foreman_openscap-8.0.0 app/models/concerns/foreman_openscap/openscap_proxy_extensions.rb
foreman_openscap-7.1.1 app/models/concerns/foreman_openscap/openscap_proxy_extensions.rb
foreman_openscap-7.1.0 app/models/concerns/foreman_openscap/openscap_proxy_extensions.rb
foreman_openscap-7.0.0 app/models/concerns/foreman_openscap/openscap_proxy_extensions.rb
foreman_openscap-6.0.0 app/models/concerns/foreman_openscap/openscap_proxy_extensions.rb
foreman_openscap-5.2.3 app/models/concerns/foreman_openscap/openscap_proxy_extensions.rb
foreman_openscap-5.2.2 app/models/concerns/foreman_openscap/openscap_proxy_extensions.rb
foreman_openscap-5.1.1 app/models/concerns/foreman_openscap/openscap_proxy_extensions.rb
foreman_openscap-5.2.1 app/models/concerns/foreman_openscap/openscap_proxy_extensions.rb
foreman_openscap-5.2.0 app/models/concerns/foreman_openscap/openscap_proxy_extensions.rb