Method: Runcible::Resources::RepositorySchedule#create

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

#create(repo_id, importer_type, schedule, optional = {}) ⇒ RestClient::Response

Create a schedule for a repository for a given importer type

Parameters:

  • repo_id (String)

    the ID of the repository

  • importer_type (String)

    the importer type

  • schedule (Hash)

    a hash representing a schedule

  • optional (Hash) (defaults to: {})

    container for all optional parameters

Returns:

  • (RestClient::Response)


35
36
37
38
# File 'lib/runcible/resources/repository_schedule.rb', line 35

def create(repo_id, importer_type, schedule, optional = {})
  call(:post, path(repo_id, importer_type),
       :payload => { :required => {:schedule => schedule}, :optional => optional })
end