src/Robo/Commands/Deploy/DeployCommand.php
protected function cutTag($repo = 'build') {
    $taskGit = $this->taskGit()
      ->tag($this->tagName, $this->commitMessage)
      ->setVerbosityThreshold(VerbosityThresholdInterface::VERBOSITY_VERBOSE)
      ->stopOnFail();

    if ($repo == 'build') {
      $taskGit->dir($this->deployDir);
    }

    $result = $taskGit->run();
    if (!$result->wasSuccessful()) {
      throw new BltException("Failed to create Git tag!");
    }
    $this->say("The tag {$this->tagName} was created on the {$repo} repository.");
  }
protected function cutTag($repo = 'build') {
    $taskGit = $this->taskGit()
      ->tag($this->tagName, $this->commitMessage)
      ->setVerbosityThreshold(VerbosityThresholdInterface::VERBOSITY_VERBOSE)
      ->stopOnFail();

    if ($repo == 'build') {
      $taskGit->dir($this->deployDir);
    }

    $result = $taskGit->run();
    if (!$result->wasSuccessful()) {
      throw new BltException("Failed to create Git tag!");
    }
    $this->say("The tag {$this->tagName} was created on the {$repo} repository.");
  }
protected function cutTag ( $ repo = 'build' ) { $ taskGit = $ this -> taskGit ( ) -> tag ( $ this -> tagName , $ this -> commitMessage ) -> setVerbosityThreshold ( VerbosityThresholdInterface :: VERBOSITY_VERBOSE ) -> stopOnFail ( ) ; if ( $ repo == 'build' ) { $ taskGit -> dir ( $ this -> deployDir ) ; } $ result = $ taskGit -> run ( ) ; if ( ! $ result -> wasSuccessful ( ) ) { throw new BltException ( "Failed to create Git tag!" ) ; } $ this -> say ( "The tag {$this->tagName} was created on the {$repo} repository." ) ; }
Creates a tag on the build repository.

@param $repo
The repo in which a tag should be cut.
@throws BltException
Creates a tag on the build repository .