Class: Actions::Katello::SyncPlan::Update

Inherits:
EntryAction
  • Object
show all
Defined in:
app/lib/actions/katello/sync_plan/update.rb

Instance Method Summary collapse

Instance Method Details

#humanized_nameObject



14
15
16
# File 'app/lib/actions/katello/sync_plan/update.rb', line 14

def humanized_name
  _("Update Sync Plan")
end

#plan(sync_plan, sync_plan_params = nil) ⇒ Object



5
6
7
8
9
10
11
12
# File 'app/lib/actions/katello/sync_plan/update.rb', line 5

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