Module: ForemanOpenscap::ArfReportExtensions
- Extended by:
- ActiveSupport::Concern
- Includes:
- Taxonomix
- Defined in:
- app/models/concerns/foreman_openscap/arf_report_extensions.rb
Instance Method Summary collapse
Instance Method Details
#assign_locations_organizations ⇒ Object
34 35 36 37 38 39 |
# File 'app/models/concerns/foreman_openscap/arf_report_extensions.rb', line 34 def assign_locations_organizations if host self.location_ids = [host.location_id] if SETTINGS[:locations_enabled] self.organization_ids = [host.organization_id] if SETTINGS[:organizations_enabled] end end |
#failed? ⇒ Boolean
41 42 43 |
# File 'app/models/concerns/foreman_openscap/arf_report_extensions.rb', line 41 def failed? failed > 0 end |
#passed? ⇒ Boolean
45 46 47 |
# File 'app/models/concerns/foreman_openscap/arf_report_extensions.rb', line 45 def passed? passed > 0 && !failed? end |