class ForemanTasks::TaskError
Attributes
errors[R]
task[R]
Public Class Methods
new(task)
click to toggle source
Calls superclass method
# File lib/foreman_tasks/task_error.rb, line 6 def initialize(task) @task = task @errors = task.execution_plan.steps.values.map(&:error).compact super(aggregated_message) end
Public Instance Methods
aggregated_message()
click to toggle source
# File lib/foreman_tasks/task_error.rb, line 12 def aggregated_message "Task #{task.id}: " + errors.map { |e| "#{e.exception_class}: #{e.message}" }.join('; ') end