Created
February 9, 2017 19:14
-
-
Save mccun934/f090dd96d667c1fe54726bcf0b06a8f5 to your computer and use it in GitHub Desktop.
republish metadata for repo
This file contains hidden or 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
| irb(main):002:0> User.current = User.anonymous_admin | |
| => #<User id: 1, login: "foreman_admin", firstname: "Anonymous", lastname: "Admin", mail: nil, admin: true, | |
| irb(main):003:0> Katello::Repository.where(id: 1317) | |
| => #<ActiveRecord::Relation [#<Katello::Repository id: 1317, name: "Red Hat Satellite 6.2 for RHEL 7 Server RPMs x86_6 | |
| irb(main):004:0> ForemanTasks.sync_task(::Actions::Katello::Repository::MetadataGenerate, Katello::Repository.where(id: 1317).first) | |
| => #<ForemanTasks::Task::DynflowTask id: "5170d237-7c78-46d3-8df9-55790413af92", type: "ForemanTasks::Task::DynflowTask", label: | |
| irb(main):005:0> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment