lib/runcible/extensions/repository.rb in runcible-0.4.6 vs lib/runcible/extensions/repository.rb in runcible-0.4.7

- old
+ new

@@ -85,9 +85,17 @@ # @return [RestClient::Response] a task representing the sync status def self.sync_status(repo_id) Runcible::Resources::Task.list(["pulp:repository:#{repo_id}", "pulp:action:sync"]) end + # Retrieves the publish status for a repository + # + # @param [String] repo_id the repository ID + # @return [RestClient::Response] a task representing the sync status + def self.publish_status(repo_id) + Runcible::Resources::Task.list(["pulp:repository:#{repo_id}", "pulp:action:publish"]) + end + # Retrieves a set of repositories by their IDs # # @param [Array] repository_ids the repository ID # @return [RestClient::Response] the set of repositories requested def self.search_by_repository_ids(repository_ids)