Sha256: 3f4c59501b824b3190671700bde8062616537e44503c8846fd77fe8b4f9c7903
Contents?: true
Size: 865 Bytes
Versions: 2
Compression:
Stored size: 865 Bytes
Contents
namespace :katello do desc "Runs a Pulp 2 to 3 Content Migration for supported types. May be run multiple times. Use wait=false to immediately return with a task url." task :pulp3_migration => ["environment", "disable_dynflow", "check_ping"] do task = ForemanTasks.async_task(Actions::Pulp3::ContentMigration, [Katello::Repository::FILE_TYPE]) if ENV['wait'].nil? || ::Foreman::Cast.to_bool(ENV['wait']) until !task.pending? || task.paused? sleep(20) task = ForemanTasks::Task.find(task.id) end if task.result == 'error' || task.result == 'pending' fail ForemanTasks::TaskError, task else puts _("Content Migration completed successfully") end else puts "Migration started, you may monitor it at: https://#{Socket.gethostname}/foreman_tasks/tasks/#{task.id}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
katello-3.15.0.rc1.1 | lib/katello/tasks/pulp3_migration.rake |
katello-3.15.0.rc1 | lib/katello/tasks/pulp3_migration.rake |