src/Robo/Commands/Deploy/DeployCommand.php
protected function getBranchName($options) {
    if ($options['branch']) {
      $this->say("Branch is set to <comment>{$options['branch']}</comment>.");
      return $options['branch'];
    }
    else {
      return $this->askDefault('Enter the branch name for the deployment artifact', $this->getDefaultBranchName());
    }
  }
protected function getBranchName($options) {
    if ($options['branch']) {
      $this->say("Branch is set to <comment>{$options['branch']}</comment>.");
      return $options['branch'];
    }
    else {
      return $this->askDefault('Enter the branch name for the deployment artifact', $this->getDefaultBranchName());
    }
  }
protected function getBranchName ( $ options ) { if ( $ options [ 'branch' ] ) { $ this -> say ( "Branch is set to <comment>{$options['branch']}</comment>." ) ; return $ options [ 'branch' ] ; } else { return $ this -> askDefault ( 'Enter the branch name for the deployment artifact' , $ this -> getDefaultBranchName ( ) ) ; } }
Gets the branch name for the deployment artifact.

Defaults to [current-branch]-build.

@return string
The branch name.
Gets the branch name for the deployment artifact .