Method: Runcible::Resources::Repository.publish

Defined in:
lib/runcible/resources/repository.rb

.publish(id, distributor_id) ⇒ RestClient::Response

Publishes a repository using the specified distributor

Parameters:

  • id (String)

    the id of the repository

  • distributor_id (String)

    the id of the distributor

Returns:

  • (RestClient::Response)


169
170
171
# File 'lib/runcible/resources/repository.rb', line 169

def self.publish(id, distributor_id)
  call(:post, "#{path(id)}actions/publish/", :payload=>{:required=>{:id=>distributor_id}})
end