Project

General

Profile

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

foreman_pipeline / app / lib / actions / foreman_pipeline / job / multiple_promotions.rb @ 5204f856

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, environments)
8
          sequence do
9
            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