Method: Runcible::Resources::Repository.associate_importer

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

.associate_importer(id, importer_type_id, importer_config) ⇒ RestClient::Response

Associates an importer to a repository

Parameters:

  • id (String)

    the ID of the repository

  • importer_type_id (String)

    the type ID of the importer being associated

  • importer_config (Hash)

    configuration options for the importer

Returns:

  • (RestClient::Response)


98
99
100
101
# File 'lib/runcible/resources/repository.rb', line 98

def self.associate_importer(id, importer_type_id, importer_config)
  required = required_params(binding.send(:local_variables), binding)
  call(:post, path("#{id}/importers"), :payload => { :required => required })
end