Sha256: bb2549a5e89b749d8453b1f26b0fac49e6b7dfa5e0fb17bff1d919e74aa2bb0f

Contents?: true

Size: 517 Bytes

Versions: 32

Compression:

Stored size: 517 Bytes

Contents

# frozen_string_literal: true

module ForemanLeapp
  module TemplateHelper
    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
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
foreman_leapp-1.2.3 app/helpers/foreman_leapp/template_helper.rb
foreman_leapp-2.0.3 app/helpers/foreman_leapp/template_helper.rb
foreman_leapp-2.0.2 app/helpers/foreman_leapp/template_helper.rb
foreman_leapp-1.2.2 app/helpers/foreman_leapp/template_helper.rb
foreman_leapp-2.0.1 app/helpers/foreman_leapp/template_helper.rb
foreman_leapp-2.0.0 app/helpers/foreman_leapp/template_helper.rb
foreman_leapp-1.2.1 app/helpers/foreman_leapp/template_helper.rb
foreman_leapp-1.2.0 app/helpers/foreman_leapp/template_helper.rb
foreman_leapp-0.1.15 app/helpers/foreman_leapp/template_helper.rb
foreman_leapp-1.1.1 app/helpers/foreman_leapp/template_helper.rb
foreman_leapp-1.1.0 app/helpers/foreman_leapp/template_helper.rb
foreman_leapp-1.0.0 app/helpers/foreman_leapp/template_helper.rb
foreman_leapp-0.1.14 app/helpers/foreman_leapp/template_helper.rb
foreman_leapp-0.1.13 app/helpers/foreman_leapp/template_helper.rb
foreman_leapp-0.1.12 app/helpers/foreman_leapp/template_helper.rb
foreman_leapp-0.1.11 app/helpers/foreman_leapp/template_helper.rb
foreman_leapp-0.1.10 app/helpers/foreman_leapp/template_helper.rb
foreman_leapp-0.1.9 app/helpers/foreman_leapp/template_helper.rb
foreman_leapp-0.1.8 app/helpers/foreman_leapp/template_helper.rb
foreman_leapp-0.1.7 app/helpers/foreman_leapp/template_helper.rb