Sha256: 496d39b4270cfafddebf7bbe0b7ec5d02579ef32944b5a4a2fdfa52a2f5406d6
Contents?: true
Size: 1.11 KB
Versions: 9
Compression:
Stored size: 1.11 KB
Contents
module Actions module Katello module Repository class CloneToVersion < Actions::Base # allows accessing the build object from the superior action attr_accessor :new_repository def plan(repository, content_view_version, incremental = false) content_view = content_view_version.content_view filters = incremental ? [] : content_view.filters.applicable(repository) self.new_repository = repository.build_clone(content_view: content_view, version: content_view_version) sequence do plan_action(Repository::Create, new_repository, true) if new_repository.yum? plan_action(Repository::CloneYumContent, repository, new_repository, filters, !incremental, :generate_metadata => !incremental, :index_content => !incremental, :simple_clone => incremental) elsif new_repository.docker? plan_action(Repository::CloneDockerContent, repository, new_repository) end end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems