Class: Actions::Pulp3::Orchestration::AlternateContentSource::Delete

Inherits:
Abstract
  • Object
show all
Defined in:
app/lib/actions/pulp3/orchestration/alternate_content_source/delete.rb

Instance Method Summary collapse

Methods inherited from Abstract

#smart_proxy

Instance Method Details

#finalizeObject



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, options = {})
  sequence do
    plan_action(Actions::Pulp3::AlternateContentSource::Delete, smart_proxy_acs)
    plan_action(Actions::Pulp3::AlternateContentSource::DeleteRemote, smart_proxy_acs, options)
    plan_self(smart_proxy_id: smart_proxy_acs.smart_proxy_id, smart_proxy_acs_id: smart_proxy_acs.id)
  end
end