Sha256: feb714b6e40e02d8bc505035c0d76517c788dd9e97ae11c0281155d22866c65e

Contents?: true

Size: 736 Bytes

Versions: 6

Compression:

Stored size: 736 Bytes

Contents

module Actions
  module Helpers
    module WithContinuousOutput
      # @override
      # array of objects defining fill_continuous_input
      def continuous_output_providers
        []
      end

      def continuous_output
        continuous_output = ::ForemanTasksCore::ContinuousOutput.new
        continuous_output_providers.each do |continous_output_provider|
          continous_output_provider.fill_continuous_output(continuous_output)
        end
        continuous_output
      end

      def fill_planning_errors_to_continuous_output(continuous_output)
        execution_plan.errors.map do |e|
          continuous_output.add_exception(_('Failed to initialize'), e, task.started_at)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
foreman-tasks-0.8.6 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.8.5 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.8.4 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.8.3 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.8.2 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.8.1 app/lib/actions/helpers/with_continuous_output.rb