Class: Actions::Pulp3::AlternateContentSource::Create

Inherits:
Actions::Pulp3::Abstract show all
Defined in:
app/lib/actions/pulp3/alternate_content_source/create.rb

Instance Method Summary collapse

Methods inherited from Actions::Pulp3::Abstract

#smart_proxy

Instance Method Details

#plan(smart_proxy_acs) ⇒ Object



5
6
7
# File 'app/lib/actions/pulp3/alternate_content_source/create.rb', line 5

def plan(smart_proxy_acs)
  plan_self(smart_proxy_id: smart_proxy_acs.smart_proxy_id, smart_proxy_acs_id: smart_proxy_acs.id)
end

#rescue_strategyObject



15
16
17
# File 'app/lib/actions/pulp3/alternate_content_source/create.rb', line 15

def rescue_strategy
  Dynflow::Action::Rescue::Skip
end

#runObject



9
10
11
12
13
# File 'app/lib/actions/pulp3/alternate_content_source/create.rb', line 9

def run
  smart_proxy_acs_id = input[:smart_proxy_acs_id]
  smart_proxy_acs = ::Katello::SmartProxyAlternateContentSource.find(smart_proxy_acs_id)
  output[:response] = smart_proxy_acs.backend_service.create
end