Module: ForemanOpenscap

Defined in:
lib/foreman_openscap.rb,
lib/foreman_openscap/engine.rb,
lib/foreman_openscap/version.rb,
lib/foreman_openscap/bulk_upload.rb,
app/models/foreman_openscap/asset.rb,
app/models/foreman_openscap/policy.rb,
lib/foreman_openscap/data_migration.rb,
lib/foreman_openscap/message_cleaner.rb,
app/models/foreman_openscap/arf_report.rb,
app/models/foreman_openscap/asset_policy.rb,
app/models/foreman_openscap/scap_content.rb,
app/mailers/foreman_openscap/policy_mailer.rb,
app/models/foreman_openscap/tailoring_file.rb,
app/models/foreman_openscap/policy_revision.rb,
app/models/foreman_openscap/compliance_status.rb,
app/models/foreman_openscap/policy_arf_report.rb,
app/models/foreman_openscap/scap_content_profile.rb,
app/services/foreman_openscap/client_config/base.rb,
app/services/foreman_openscap/config_name_service.rb,
app/services/foreman_openscap/hostgroup_overrider.rb,
app/models/concerns/foreman_openscap/policy_common.rb,
app/services/foreman_openscap/client_config/manual.rb,
app/services/foreman_openscap/client_config/puppet.rb,
app/services/foreman_openscap/lookup_key_overrider.rb,
app/models/concerns/foreman_openscap/log_extensions.rb,
app/services/foreman_openscap/client_config/ansible.rb,
app/models/concerns/foreman_openscap/host_extensions.rb,
app/validators/foreman_openscap/data_stream_validator.rb,
app/models/concerns/foreman_openscap/scap_file_content.rb,
app/models/concerns/foreman_openscap/inherited_policies.rb,
app/models/concerns/foreman_openscap/data_stream_content.rb,
app/services/foreman_openscap/hostgroup_overrider_common.rb,
app/models/concerns/foreman_openscap/hostgroup_extensions.rb,
app/services/foreman_openscap/lookup_key_overrides_common.rb,
app/services/foreman_openscap/arf_report_status_calculator.rb,
app/models/concerns/foreman_openscap/smart_proxy_extensions.rb,
app/controllers/concerns/foreman_openscap/body_log_extensions.rb,
app/helpers/concerns/foreman_openscap/hosts_helper_extensions.rb,
app/models/concerns/foreman_openscap/openscap_proxy_extensions.rb,
app/models/concerns/foreman_openscap/openscap_proxy_core_extensions.rb,
app/models/concerns/foreman_openscap/compliance_status_scoped_search.rb,
app/controllers/concerns/foreman_openscap/hosts_controller_extensions.rb,
app/controllers/concerns/foreman_openscap/api/v2/hosts_controller_extensions.rb,
app/controllers/concerns/foreman_openscap/api/v2/scap_api_controller_extensions.rb,
app/validators/concerns/foreman_openscap/bookmark_controller_validator_extensions.rb,
app/controllers/concerns/foreman_openscap/arf_reports_controller_common_extensions.rb,
app/controllers/concerns/foreman_openscap/hosts_and_hostgroups_controller_extensions.rb

Defined Under Namespace

Modules: ArfReportsControllerCommonExtensions, BodyLogExtensions, BookmarkControllerValidatorExtensions, ClientConfig, ComplianceStatusScopedSearch, DataStreamContent, Helper, HostExtensions, HostReportDashboard, HostgroupExtensions, HostgroupOverriderCommon, HostsAndHostgroupsControllerExtensions, HostsControllerExtensions, HostsHelperExtensions, InheritedPolicies, LogExtensions, LookupKeyOverridesCommon, OpenscapProxyCoreExtensions, OpenscapProxyExtensions, PolicyCommon, PolicyDashboard, ReportDashboard, ScapFileContent, SmartProxyExtensions Classes: ArfReport, ArfReportStatusCalculator, Asset, AssetPolicy, BulkUpload, ComplianceStatus, ConfigNameService, DataMigration, DataStreamValidator, Engine, HostgroupOverrider, LookupKeyOverrider, MessageCleaner, Policy, PolicyArfReport, PolicyMailer, PolicyRevision, ScapContent, ScapContentProfile, TailoringFile

Constant Summary collapse

VERSION =
"10.0.0".freeze

Class Method Summary collapse

Class Method Details

.table_name_prefixObject



246
247
248
# File 'lib/foreman_openscap/engine.rb', line 246

def self.table_name_prefix
  "foreman_openscap_"
end

.use_relative_model_naming?Boolean

Returns:

  • (Boolean)


250
251
252
# File 'lib/foreman_openscap/engine.rb', line 250

def self.use_relative_model_naming?
  true
end

.with_ansible?Boolean

Returns:

  • (Boolean)


258
259
260
# File 'lib/foreman_openscap/engine.rb', line 258

def self.with_ansible?
  ForemanAnsible rescue false
end

.with_katello?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/foreman_openscap/engine.rb', line 2

def self.with_katello?
  Foreman::Plugin.installed?("katello")
end

.with_remote_execution?Boolean

Returns:

  • (Boolean)


254
255
256
# File 'lib/foreman_openscap/engine.rb', line 254

def self.with_remote_execution?
  RemoteExecutionFeature rescue false
end