Sha256: 4c0aaecba860344ca68fda8fa0b4e4d1a5a4c44d5d25d7446564e4835427023d
Contents?: true
Size: 570 Bytes
Versions: 67
Compression:
Stored size: 570 Bytes
Contents
module Actions module Katello module SyncPlan class Destroy < Actions::EntryAction 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 def finalize sync_plan = ::Katello::SyncPlan.find(input[:sync_plan][:id]) sync_plan.destroy! end def humanized_name _("Delete") end end end end end
Version data entries
67 entries across 67 versions & 1 rubygems