Class: Actions::Katello::ContentViewVersion::CreateRepos
- Inherits:
-
Base
- Object
- Base
- Actions::Katello::ContentViewVersion::CreateRepos
- Defined in:
- app/lib/actions/katello/content_view_version/create_repos.rb
Instance Attribute Summary collapse
-
#repository_mapping ⇒ Object
allows accessing the build object from the superior action.
Instance Method Summary collapse
Instance Attribute Details
#repository_mapping ⇒ Object
allows accessing the build object from the superior action
6 7 8 |
# File 'app/lib/actions/katello/content_view_version/create_repos.rb', line 6 def repository_mapping @repository_mapping end |
Instance Method Details
#humanized_name ⇒ Object
19 20 21 |
# File 'app/lib/actions/katello/content_view_version/create_repos.rb', line 19 def humanized_name _("Create Repositories") end |
#plan(version, source_repositories = []) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/lib/actions/katello/content_view_version/create_repos.rb', line 7 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, clone: true) repository_mapping[repositories] = new_repository end end end |