Module: ForemanThemeSatellite::ScapBulkUploadExtensions
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/foreman_theme_satellite/scap_bulk_upload_extensions.rb
Instance Method Summary collapse
Instance Method Details
#extract_name_from_file(file) ⇒ Object
13 14 15 16 17 |
# File 'lib/foreman_theme_satellite/scap_bulk_upload_extensions.rb', line 13 def extract_name_from_file(file) # SCAP datastream files are in format of ssg-sat-<OS>-ds.xml # We wish to extract the <OS> and create a name of it super.gsub('sat-', '') end |
#security_guide_packages ⇒ Object
7 8 9 10 11 |
# File 'lib/foreman_theme_satellite/scap_bulk_upload_extensions.rb', line 7 def security_guide_packages packages = super packages.unshift('scap-security-guide-satellite') packages end |