Sha256: 57fe337959b94b73a682f0800a919859c2cf83d9417356c9f2e732f761b7f8c6
Contents?: true
Size: 650 Bytes
Versions: 54
Compression:
Stored size: 650 Bytes
Contents
namespace :katello do desc 'Refresh all alternate content sources' task :refresh_alternate_content_sources => ["dynflow:client"] do User.current = User.anonymous_admin alternate_content_sources = ::Katello::AlternateContentSource.all if alternate_content_sources.present? ::ForemanTasks.async_task(::Actions::BulkAction, ::Actions::Katello::AlternateContentSource::Refresh, alternate_content_sources) puts _("Alternate content source refreshing started in the background.") else puts _("No alternate content sources to refresh.") end end end
Version data entries
54 entries across 54 versions & 1 rubygems