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

Version Path
katello-3.15.0.1 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.15.0 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.15.0.rc2 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.15.0.rc1.3 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.15.0.rc1.2 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.15.0.rc1.1 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.15.0.rc1 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.14.1 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.14.0 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.14.0.rc2 app/lib/actions/katello/content_view_version/create_repos.rb