Sha256: c088d3d8fadaa12c292ab932715a089ae5ef854193165449c1f800c696999d03

Contents?: true

Size: 558 Bytes

Versions: 67

Compression:

Stored size: 558 Bytes

Contents

module Actions
  module Katello
    module SyncPlan
      class Update < Actions::EntryAction
        def plan(sync_plan, sync_plan_params = nil)
          action_subject(sync_plan)
          sync_plan.update_attributes(sync_plan_params) if sync_plan_params
          sync_plan.save!
          sync_plan.products.each do |product|
            plan_action(::Actions::Katello::Product::Update, product, :sync_plan_id => sync_plan.id)
          end
        end

        def humanized_name
          _("Update Sync Plan")
        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/update.rb
katello-3.7.1.1 app/lib/actions/katello/sync_plan/update.rb
katello-3.7.1 app/lib/actions/katello/sync_plan/update.rb
katello-3.8.0 app/lib/actions/katello/sync_plan/update.rb
katello-3.8.0.rc3 app/lib/actions/katello/sync_plan/update.rb
katello-3.8.0.rc2 app/lib/actions/katello/sync_plan/update.rb
katello-3.7.0 app/lib/actions/katello/sync_plan/update.rb
katello-3.8.0.rc1 app/lib/actions/katello/sync_plan/update.rb
katello-3.7.0.rc2 app/lib/actions/katello/sync_plan/update.rb
katello-3.7.0.rc1 app/lib/actions/katello/sync_plan/update.rb
katello-3.5.2 app/lib/actions/katello/sync_plan/update.rb
katello-3.6.0 app/lib/actions/katello/sync_plan/update.rb
katello-3.6.0.1.rc2 app/lib/actions/katello/sync_plan/update.rb
katello-3.6.0.rc2 app/lib/actions/katello/sync_plan/update.rb
katello-3.6.0.rc1 app/lib/actions/katello/sync_plan/update.rb
katello-3.5.1.1 app/lib/actions/katello/sync_plan/update.rb
katello-3.5.1 app/lib/actions/katello/sync_plan/update.rb
katello-3.5.0.1 app/lib/actions/katello/sync_plan/update.rb
katello-3.5.0 app/lib/actions/katello/sync_plan/update.rb
katello-3.5.0.rc2 app/lib/actions/katello/sync_plan/update.rb