Class: ForemanAnsibleDirector::Actions::AnsibleContentUnit::Bulk::Destroy
- Inherits:
-
Base::AnsibleDirectorAction
show all
- Includes:
- Dynflow::Action::V2::WithSubPlans
- Defined in:
- app/lib/foreman_ansible_director/actions/ansible_content_unit/bulk/destroy.rb
Instance Method Summary
collapse
#humanized_name, #queue, #task_output
Instance Method Details
#create_sub_plans ⇒ Object
15
16
17
18
19
20
21
22
23
|
# File 'app/lib/foreman_ansible_director/actions/ansible_content_unit/bulk/destroy.rb', line 15
def create_sub_plans
input[:resolved_content_units].each do |unit_id, instruction|
complete = instruction.delete(:complete)
trigger(::ForemanAnsibleDirector::Actions::AnsibleContentUnit::Destroy,
unit_id: unit_id,
unit_version_ids: instruction[:versions],
complete: complete)
end
end
|
#total_count ⇒ Object
25
26
27
|
# File 'app/lib/foreman_ansible_director/actions/ansible_content_unit/bulk/destroy.rb', line 25
def total_count
input[:resolved_content_units].keys.length
end
|