Class: Actions::Katello::Repository::CloneDockerContent

Inherits:
Base
  • Object
show all
Defined in:
app/lib/actions/katello/repository/clone_docker_content.rb

Instance Method Summary collapse

Instance Method Details

#plan(source_repo, target_repo) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
# File 'app/lib/actions/katello/repository/clone_docker_content.rb', line 5

def plan(source_repo, target_repo)
  sequence do
    plan_action(Pulp::Repository::CopyDockerManifest,
                source_pulp_id: source_repo.pulp_id,
                target_pulp_id: target_repo.pulp_id)
    plan_action(Pulp::Repository::CopyDockerTag,
                source_pulp_id: source_repo.pulp_id,
                target_pulp_id: target_repo.pulp_id)
    plan_action(Katello::Repository::MetadataGenerate, target_repo)
    plan_action(Katello::Repository::IndexContent, id: target_repo.id)
  end
end