Class: Actions::Katello::AlternateContentSource::Refresh

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

Instance Method Summary collapse

Instance Method Details

#finalizeObject



15
16
17
# File 'app/lib/actions/katello/alternate_content_source/refresh.rb', line 15

def finalize
  ::Katello::AlternateContentSource.find_by(id: input[:acs_id])&.audit_refresh
end

#humanized_nameObject



19
20
21
# File 'app/lib/actions/katello/alternate_content_source/refresh.rb', line 19

def humanized_name
  _("Refresh Alternate Content Source")
end

#plan(acs) ⇒ Object



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

def plan(acs)
  action_subject(acs)
  concurrence do
    acs.smart_proxy_alternate_content_sources.each do |smart_proxy_acs|
      plan_action(Pulp3::Orchestration::AlternateContentSource::Refresh, smart_proxy_acs)
    end
  end
  plan_self(acs_id: acs.id)
end