Sha256: 3e350c1bcc3a89d07289ee4ef3234629a191e1acd2455dbc772bd0dccb743edb

Contents?: true

Size: 735 Bytes

Versions: 24

Compression:

Stored size: 735 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

24 entries across 24 versions & 1 rubygems

Version Path
foreman-tasks-0.9.3 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.9.2 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.9.1 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.9.0 app/lib/actions/helpers/with_continuous_output.rb