Class: Actions::Pulp3::Orchestration::Repository::RefreshIfNeeded
Instance Method Summary
collapse
#cancel, #cancel!, #combined_tasks, #done?, #external_task, #humanized_state, #new_or_existing_objects, #pulp_tasks, #rescue_external_task, #run, #task_groups
Methods inherited from Abstract
#smart_proxy
Instance Method Details
#invoke_external_task ⇒ Object
10
11
12
13
|
# File 'app/lib/actions/pulp3/orchestration/repository/refresh_if_needed.rb', line 10
def invoke_external_task
repo = ::Katello::Repository.find(input[:repository_id])
repo.backend_service(smart_proxy).refresh_if_needed
end
|
#plan(repository, smart_proxy, _options = {}) ⇒ Object
6
7
8
|
# File 'app/lib/actions/pulp3/orchestration/repository/refresh_if_needed.rb', line 6
def plan(repository, smart_proxy, _options = {})
plan_self(repository_id: repository.id, smart_proxy_id: smart_proxy.id)
end
|