Sha256: 93f733c587269b2f141fbf8cfdb94e1a5d24510b7d079255107fed59de0a8f2d
Contents?: true
Size: 690 Bytes
Versions: 57
Compression:
Stored size: 690 Bytes
Contents
module Actions module Katello module AlternateContentSource class Destroy < Actions::EntryAction def plan(acs) action_subject(acs) sequence do acs.smart_proxy_alternate_content_sources.each do |smart_proxy_acs| plan_action(Pulp3::Orchestration::AlternateContentSource::Delete, smart_proxy_acs) end plan_self(acs_id: acs.id) end end def finalize acs = ::Katello::AlternateContentSource.find_by(id: input[:acs_id]) acs.destroy end def humanized_name _("Destroy Alternate Content Source") end end end end end
Version data entries
57 entries across 57 versions & 1 rubygems