Method: Cnvrg::Project#jump_idx

Defined in:
lib/cnvrg/project.rb

#jump_idx(destination: self.last_local_commit) ⇒ Object



477
478
479
480
481
482
483
484
485
486
487
488
# File 'lib/cnvrg/project.rb', line 477

def jump_idx(destination: self.last_local_commit)
  local_idx = self.generate_idx
  ignore_list = self.send_ignore_list
  current_commit = local_idx[:commit]
  tree = local_idx[:tree]
  response = Cnvrg::API.request("users/#{self.owner}/projects/#{self.slug}/jump_to",
                                'POST',
                                {tree: tree, ignore: ignore_list,
                                 dest_commit: destination, current_commit: current_commit})
  CLI.is_response_success(response,false)
  response
end