Class: Actions::Pulp3::Orchestration::Repository::RefreshRepos

Inherits:
AbstractAsyncTask show all
Includes:
Katello::CapsuleContent::RefreshRepos
Defined in:
app/lib/actions/pulp3/orchestration/repository/refresh_repos.rb

Instance Method Summary collapse

Methods included from Katello::CapsuleContent::RefreshRepos

#invoke_external_task, #plan, #rescue_strategy

Methods inherited from AbstractAsyncTask

#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

#act_on_repo?(repo, smart_proxy) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'app/lib/actions/pulp3/orchestration/repository/refresh_repos.rb', line 12

def act_on_repo?(repo, smart_proxy)
  smart_proxy.pulp3_support?(repo)
end

#fetch_proxy_service(smart_proxy) ⇒ Object



8
9
10
# File 'app/lib/actions/pulp3/orchestration/repository/refresh_repos.rb', line 8

def fetch_proxy_service(smart_proxy)
  ::Katello::Pulp3::SmartProxyRepository.instance_for_type(smart_proxy)
end