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.11.3 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.13.0 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.12.2 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.11.2 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.12.1 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.12.0 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.11.1 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.10.9 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.11.0 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.10.8 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.10.7 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.10.6 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.10.4 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.9.6 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.10.3 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.10.2 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.10.1 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.9.5 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.10.0 app/lib/actions/helpers/with_continuous_output.rb
foreman-tasks-0.9.4 app/lib/actions/helpers/with_continuous_output.rb