Sha256: 1dcbd66a308e7304ca198dfcb8544fa3325da1c2625fd8d7f1df73c1820ea709
Contents?: true
Size: 845 Bytes
Versions: 70
Compression:
Stored size: 845 Bytes
Contents
module Actions module Katello module ContentViewVersion class CreateRepos < Actions::Base # allows accessing the build object from the superior action attr_accessor :repository_mapping def plan(version, source_repositories = []) self.repository_mapping = {} concurrence do source_repositories.each do |repositories| new_repository = repositories.first.build_clone(content_view: version.content_view, version: version) plan_action(Repository::Create, new_repository, true, false) repository_mapping[repositories] = new_repository end end end def humanized_name _("Create Repositories") end end end end end
Version data entries
70 entries across 70 versions & 1 rubygems