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

Version Path
katello-3.2.0 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.2.0.rc3 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.2.0.rc2 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.2.0.rc1.1 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.2.0.rc1 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.1.0.1 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.1.0 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.1.0.rc2.1 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.0.2 app/lib/actions/katello/sync_plan/destroy.rb
katello-2.4.5 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.1.0.rc1 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.0.1 app/lib/actions/katello/sync_plan/destroy.rb
katello-2.4.4 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.0.0 app/lib/actions/katello/sync_plan/destroy.rb
katello-2.4.3 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.0.0.rc7 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.0.0.rc5 app/lib/actions/katello/sync_plan/destroy.rb
katello-2.4.2 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.0.0.rc4 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.0.0.rc3 app/lib/actions/katello/sync_plan/destroy.rb