Project

General

Profile

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

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

1
module Actions
2
  module ForemanPipeline
3
    module Job
4
      class FindPackagesToInstall < Actions::EntryAction
5
        middleware.use ::Actions::Middleware::RemoteAction
6
        include ::Dynflow::Action::Cancellable
7

    
8
        def run
9
          job = ::ForemanPipeline::Job.find input.fetch(:job_id)
10
          output[:package_names] = job.target_cv_version.packages.map(&:name)
11
        end
12

    
13
      end
14
    end
15
  end
16
end