Skip to content

Commit

Permalink
Fixes #21661 - Retrieve All for consumers
Browse files Browse the repository at this point in the history
This commit adds a couple of methods to retrieve all consumers in one
go.
  • Loading branch information
parthaa authored and jlsherrill committed Nov 16, 2017
1 parent e427fd2 commit df1b6e2
Show file tree
Hide file tree
Showing 25 changed files with 2,801 additions and 702 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Exposing Pulp's juiciest parts. http://www.pulpproject.org/

Latest Live Tested Version: **pulp-server-2.12.1-1.el7.noarch**
Latest Live Tested Version: **pulp-server-2.14.0-1.el7.noarch**

Current stable Runcible: https://github.com/Katello/runcible/tree/0.3

Expand Down
9 changes: 8 additions & 1 deletion lib/runcible/resources/consumer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,17 @@ def create(id, optional = {})
#
# @param [String] id the ID of the consumer
# @return [RestClient::Response]
def retrieve(id)
def retrieve(id = nil)
call(:get, path(id))
end

# Retrieves all consumers
#
# @return [RestClient::Response]
def retrieve_all
retrieve
end

# Updates a consumer
#
# @param [String] id the ID of the consumer
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit df1b6e2

Please sign in to comment.