Skip to content

Commit

Permalink
Merge 0ff4642 into 73b499a
Browse files Browse the repository at this point in the history
  • Loading branch information
parthaa committed Nov 6, 2018
2 parents 73b499a + 0ff4642 commit 6cc2f92
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/runcible/extensions/consumer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,14 @@ def applicable_rpms(ids)
applicable_for_type(ids, Runcible::Extensions::Rpm.content_type)
end

# Retrieve the set of modules that are applicable to a consumer(s)
#
# @param [String, Array] ids string containing a single consumer id or an array of ids
# @return [RestClient::Response] content applicability hash with details of modules available to consumer(s)
def applicable_rpms(ids)
applicable_for_type(ids, Runcible::Extensions::Module.content_type)
end

private

def applicable_for_type(ids, type)
Expand Down

0 comments on commit 6cc2f92

Please sign in to comment.