src/Robo/Commands/Deploy/DeployCommand.php
protected function commit() {
    $this->say("Committing artifact to <comment>{$this->branchName}</comment>...");

    $result = $this->taskGit()
      ->dir($this->deployDir)
      ->exec("git rm -r --cached --ignore-unmatch --quiet .")
      ->add('-A')
      ->commit($this->commitMessage, '--quiet')
      ->setVerbosityThreshold(VerbosityThresholdInterface::VERBOSITY_VERBOSE)
      ->run();

    if (!$result->wasSuccessful()) {
      throw new BltException("Failed to commit deployment artifact!");
    }
  }
protected function commit() {
    $this->say("Committing artifact to <comment>{$this->branchName}</comment>...");

    $result = $this->taskGit()
      ->dir($this->deployDir)
      ->exec("git rm -r --cached --ignore-unmatch --quiet .")
      ->add('-A')
      ->commit($this->commitMessage, '--quiet')
      ->setVerbosityThreshold(VerbosityThresholdInterface::VERBOSITY_VERBOSE)
      ->run();

    if (!$result->wasSuccessful()) {
      throw new BltException("Failed to commit deployment artifact!");
    }
  }
protected function commit ( ) { $ this -> say ( "Committing artifact to <comment>{$this->branchName}</comment>..." ) ; $ result = $ this -> taskGit ( ) -> dir ( $ this -> deployDir ) -> exec ( "git rm -r --cached --ignore-unmatch --quiet ." ) -> add ( '-A' ) -> commit ( $ this -> commitMessage , '--quiet' ) -> setVerbosityThreshold ( VerbosityThresholdInterface :: VERBOSITY_VERBOSE ) -> run ( ) ; if ( ! $ result -> wasSuccessful ( ) ) { throw new BltException ( "Failed to commit deployment artifact!" ) ; } }
Creates a commit on the artifact.
@throws BltException
Creates a commit on the artifact .