Project

General

Profile

Download (437 Bytes) Statistics
| Branch: | Tag: | Revision:

foreman_pipeline / app / lib / actions / foreman_pipeline / job / multiple_promotions.rb @ 9fb80abe

1
module Actions
2
  module ForemanPipeline
3
    module Job
4
      class MultiplePromotions < Actions::EntryAction
5
        middleware.use ::Actions::Middleware::KeepCurrentUser
6

    
7
        def plan(job)
8
          sequence do
9
            job.envs_for_promotion.each do |env|
10
              plan_action(::Actions::Katello::ContentView::Promote, job.target_cv_version, env, false)
11
            end
12
          end
13
        end
14
      end
15
    end
16
  end
17
end