lib/runcible/resources/repository.rb in runcible-0.4.11 vs lib/runcible/resources/repository.rb in runcible-0.4.12
- old
+ new
@@ -163,12 +163,13 @@
# Publishes a repository using the specified distributor
#
# @param [String] id the id of the repository
# @param [String] distributor_id the id of the distributor
+ # @param [Hash] optional optional params
# @return [RestClient::Response]
- def self.publish(id, distributor_id)
- call(:post, "#{path(id)}actions/publish/", :payload=>{:required=>{:id=>distributor_id}})
+ def self.publish(id, distributor_id, optional={})
+ call(:post, "#{path(id)}actions/publish/", :payload=>{:required=>{:id=>distributor_id}, :optional=>optional})
end
# Deletes the specified distributor from the repository
#
# @param [String] id the id of the repository