Last active
September 2, 2020 15:21
-
-
Save wbclark/46ac36f1f81e10c761c1574aa0a295fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Importing Subscription Pools from Candlepin to Katello (what is displayed on the WebUI)." | |
echo ' | |
namespace :katello do | |
task :import_subscriptions => ["environment"] do | |
User.current = User.anonymous_api_admin | |
puts _("Importing Subscriptions") | |
Katello::Subscription.import_all | |
Katello::Pool.import_all | |
end | |
end | |
' | foreman-rake console |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment