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.8.1 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.7.1.1 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.7.1 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.8.0 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.8.0.rc3 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.8.0.rc2 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.7.0 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.8.0.rc1 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.7.0.rc2 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.7.0.rc1 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.5.2 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.6.0 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.6.0.1.rc2 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.6.0.rc2 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.6.0.rc1 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.5.1.1 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.5.1 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.5.0.1 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.5.0 app/lib/actions/katello/sync_plan/destroy.rb
katello-3.5.0.rc2 app/lib/actions/katello/sync_plan/destroy.rb