Project

General

Profile

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

foreman_pipeline / app / lib / actions / foreman_pipeline / job / multiple_promotions.rb @ 4c01c2ee

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.to_environments.each do |env|
10
              plan_action(::Actions::Katello::ContentView::Promote, job.target_cv_version, env, false)
11
            end
12
          end
13
        end
14

    
15
      end
16
    end
17
  end
18
end