Class: Actions::Katello::Repository::Clear

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

Instance Method Summary collapse

Instance Method Details

#plan(repo) ⇒ Object



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

def plan(repo)
  [Pulp::Repository::RemoveRpm,
   Pulp::Repository::RemoveErrata,
   Pulp::Repository::RemovePackageGroup,
   Pulp::Repository::RemoveDistribution,
   Pulp::Repository::RemovePuppetModule].each do |action_class|
    plan_action(action_class, pulp_id: repo.pulp_id)
  end
end