Module: ForemanLeapp::TemplateHelper
- Defined in:
- app/helpers/foreman_leapp/template_helper.rb
Instance Method Summary collapse
Instance Method Details
#build_remediation_plan(remediation_ids, host) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'app/helpers/foreman_leapp/template_helper.rb', line 5 def build_remediation_plan(remediation_ids, host) PreupgradeReportEntry.remediation_details(remediation_ids, host) .map { |e| e['remediations'] } .flatten .compact .select { |r| r['type'] == 'command' } .map { |r| "#{r['context'].join(' ')}\n" } .join end |