Class: ForemanAnsibleDirector::Actions::ConsistencyCheck::Destroy::CollectionRemotes

Inherits:
Base::AnsibleDirectorAction
  • Object
show all
Defined in:
app/lib/foreman_ansible_director/actions/consistency_check/destroy/collection_remotes.rb

Instance Method Summary collapse

Methods inherited from Base::AnsibleDirectorAction

#humanized_name, #queue, #task_output

Instance Method Details

#plan(args) ⇒ Object



15
16
17
18
19
20
21
22
23
24
# File 'app/lib/foreman_ansible_director/actions/consistency_check/destroy/collection_remotes.rb', line 15

def plan(args)
  unreferenced_collection_remote_hrefs = args[:unreferenced_collection_remote_hrefs]

  unreferenced_collection_remote_hrefs.each do |collection_remote_href|
    plan_action(
      ::ForemanAnsibleDirector::Actions::Pulp3::Ansible::Remote::Collection::Destroy,
      collection_remote_href: collection_remote_href
    )
  end
end