Method: Runcible::Resources::Repository.update_importer

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

.update_importer(id, importer_id, importer_config) ⇒ RestClient::Response

Updates the specified distributor from the repository

Parameters:

  • id (String)

    the id of the repository

  • importer_id (String)

    the id of the importer

  • importer_config (Hash)

    attributes to change

Returns:

  • (RestClient::Response)


208
209
210
211
# File 'lib/runcible/resources/repository.rb', line 208

def self.update_importer(id, importer_id, importer_config)
  required = required_params(binding.send(:local_variables), binding, ["id", "importer_id"])
  call(:put, path("#{id}/importers/#{importer_id}/"), :payload => { :required => required})
end