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