updateFile() public method

public updateFile ( string $file_path, string $content, string $branch_name, string $commit_message ) : Gitlab\Model\File
$file_path string
$content string
$branch_name string
$commit_message string
return Gitlab\Model\File
Example #1
0
 /**
  * Send file to repository
  * @param string $filePath
  * @param string $content
  * @param string $branch
  * @param string $message
  * @throws Gitlab\Exception\RuntimeException;
  */
 public function sendFile($filePath, $content, $branch, $message)
 {
     $project = new Project($this->getProjectID(), $this->client);
     $project->updateFile($filePath, $content, $branch, $message);
 }