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

Version Path
katello-4.14.2 lib/katello/tasks/refresh_alternate_content_sources.rake
katello-4.15.0 lib/katello/tasks/refresh_alternate_content_sources.rake
katello-4.15.0.rc2 lib/katello/tasks/refresh_alternate_content_sources.rake
katello-4.15.0.rc1 lib/katello/tasks/refresh_alternate_content_sources.rake
katello-4.14.1 lib/katello/tasks/refresh_alternate_content_sources.rake
katello-4.14.0 lib/katello/tasks/refresh_alternate_content_sources.rake
katello-4.14.0.rc3 lib/katello/tasks/refresh_alternate_content_sources.rake
katello-4.14.0.rc2 lib/katello/tasks/refresh_alternate_content_sources.rake
katello-4.14.0.rc1.1 lib/katello/tasks/refresh_alternate_content_sources.rake
katello-4.14.0.rc1 lib/katello/tasks/refresh_alternate_content_sources.rake
katello-4.13.1 lib/katello/tasks/refresh_alternate_content_sources.rake
katello-4.13.0 lib/katello/tasks/refresh_alternate_content_sources.rake
katello-4.12.1 lib/katello/tasks/refresh_alternate_content_sources.rake
katello-4.13.0.rc1 lib/katello/tasks/refresh_alternate_content_sources.rake
katello-4.12.0 lib/katello/tasks/refresh_alternate_content_sources.rake
katello-4.12.0.rc3 lib/katello/tasks/refresh_alternate_content_sources.rake
katello-4.12.0.rc2 lib/katello/tasks/refresh_alternate_content_sources.rake
katello-4.12.0.rc1 lib/katello/tasks/refresh_alternate_content_sources.rake
katello-4.11.1 lib/katello/tasks/refresh_alternate_content_sources.rake
katello-4.11.0 lib/katello/tasks/refresh_alternate_content_sources.rake