Class: Actions::Katello::SyncPlan::Destroy
- Inherits:
-
EntryAction
- Object
- EntryAction
- Actions::Katello::SyncPlan::Destroy
- Defined in:
- app/lib/actions/katello/sync_plan/destroy.rb
Instance Method Summary collapse
Instance Method Details
#finalize ⇒ Object
15 16 17 18 |
# File 'app/lib/actions/katello/sync_plan/destroy.rb', line 15 def finalize sync_plan = ::Katello::SyncPlan.find(input[:sync_plan][:id]) sync_plan.destroy! end |
#humanized_name ⇒ Object
20 21 22 |
# File 'app/lib/actions/katello/sync_plan/destroy.rb', line 20 def humanized_name _("Delete") end |
#plan(sync_plan) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'app/lib/actions/katello/sync_plan/destroy.rb', line 5 def plan(sync_plan) action_subject(sync_plan) sync_plan.products.each do |product| plan_action(::Actions::Katello::Product::Update, product, :sync_plan_id => nil) end plan_self end |