Class: Actions::Pulp3::Orchestration::AlternateContentSource::Delete
- Inherits:
-
Abstract
- Object
- EntryAction
- Abstract
- Actions::Pulp3::Orchestration::AlternateContentSource::Delete
- Defined in:
- app/lib/actions/pulp3/orchestration/alternate_content_source/delete.rb
Instance Method Summary collapse
Methods inherited from Abstract
Instance Method Details
#finalize ⇒ Object
14 15 16 17 |
# File 'app/lib/actions/pulp3/orchestration/alternate_content_source/delete.rb', line 14 def finalize smart_proxy_acs_id = input[:smart_proxy_acs_id] ::Katello::SmartProxyAlternateContentSource.find_by(id: smart_proxy_acs_id).destroy end |
#plan(smart_proxy_acs, options = {}) ⇒ Object
6 7 8 9 10 11 12 |
# File 'app/lib/actions/pulp3/orchestration/alternate_content_source/delete.rb', line 6 def plan(smart_proxy_acs, = {}) sequence do plan_action(Actions::Pulp3::AlternateContentSource::Delete, smart_proxy_acs) plan_action(Actions::Pulp3::AlternateContentSource::DeleteRemote, smart_proxy_acs, ) plan_self(smart_proxy_id: smart_proxy_acs.smart_proxy_id, smart_proxy_acs_id: smart_proxy_acs.id) end end |