Sha256: 0d7d231f91dde1b496582f55db6baad41cb0d765a2ad4355f939dd9b42b514a9

Contents?: true

Size: 1.42 KB

Versions: 1

Compression:

Stored size: 1.42 KB

Contents

#
# Copyright (c) 2014--2015 Red Hat Inc.
#
# This software is licensed to you under the GNU General Public License,
# version 3 (GPLv3). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv3
# along with this software; if not, see http://www.gnu.org/licenses/gpl.txt
#

require 'smart_proxy_openscap/version'
require 'smart_proxy_openscap/validate_settings'
require 'smart_proxy_openscap/openscap_exception'

module Proxy::OpenSCAP
  class Plugin < ::Proxy::Plugin
    plugin :openscap, Proxy::OpenSCAP::VERSION

    http_rackup_path File.expand_path("http_config.ru", File.expand_path("../", __FILE__))
    https_rackup_path File.expand_path("http_config.ru", File.expand_path("../", __FILE__))

    default_settings :spooldir => '/var/spool/foreman-proxy/openscap',
                     :openscap_send_log_file => File.join(APP_ROOT, 'logs/openscap-send.log'),
                     :contentdir => File.join(APP_ROOT, 'openscap/content'),
                     :reportsdir => File.join(APP_ROOT, 'openscap/reports'),
                     :failed_dir => File.join(APP_ROOT, 'openscap/failed'),
                     :tailoring_dir => File.join(APP_ROOT, 'openscap/tailoring')

    load_validators :validate_settings => ::Proxy::OpenSCAP::ValidateSettings
    validate :validate!, :validate_settings => nil
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
smart_proxy_openscap-0.12.0 lib/smart_proxy_openscap/openscap_plugin.rb