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.16.1.1 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.17.0.rc2 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.16.1 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.17.0.rc1 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.16.0 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.16.0.rc5.1 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.16.0.rc5 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.16.0.rc4.1 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.15.3.1 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.15.3 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.16.0.rc4 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.16.0.rc3.1 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.15.2 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.16.0.rc3 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.16.0.rc2.1 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.16.0.rc2 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.15.1.1 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.16.0.rc1.1 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.15.1 app/lib/actions/katello/content_view_version/create_repos.rb
katello-3.16.0.rc1 app/lib/actions/katello/content_view_version/create_repos.rb