Skip to content

Instantly share code, notes, and snippets.

@jlsherrill
Last active October 7, 2016 17:50
Show Gist options
  • Save jlsherrill/c5916a1c2b04bf58b54e to your computer and use it in GitHub Desktop.
Save jlsherrill/c5916a1c2b04bf58b54e to your computer and use it in GitHub Desktop.
Republishing a repo
# foreman-rake console
> User.current = User.first
> repo = Katello::Repository.find(3)

# or  repo = Katello::Repository.find_by_pulp_id("Default_Organization_product_repo_label")

> ForemanTasks.async_task(Actions::Pulp::Repository::DistributorPublish, :pulp_id => repo.pulp_id, :distributor_type_id => Runcible::Models::YumDistributor.type_id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment