Method: Runcible::Resources::Repository.update_distributor

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

.update_distributor(id, distributor_id, distributor_config) ⇒ RestClient::Response

Updates the specified distributor from the repository

Parameters:

  • id (String)

    the id of the repository

  • distributor_id (String)

    the id of the distributor

  • distributor_config (Hash)

    attributes to change

Returns:

  • (RestClient::Response)


188
189
190
191
# File 'lib/runcible/resources/repository.rb', line 188

def self.update_distributor(id, distributor_id, distributor_config)
  required = required_params(binding.send(:local_variables), binding, ["id", "distributor_id"])
  call(:put, path("#{id}/distributors/#{distributor_id}/"), :payload => { :required => required})
end