src/Robo/Commands/Deploy/DeployCommand.php
protected function push($identifier, $options) {
    if ($options['dry-run']) {
      $this->logger->warning("Skipping push of deployment artifact. deploy.dryRun is set to true.");
      return FALSE;
    }
    else {
      $this->say("Pushing artifact to git.remotes...");
    }

    $task = $this->taskExecStack()
      ->dir($this->deployDir);
    foreach ($this->getConfigValue('git.remotes') as $remote) {
      $remote_name = md5($remote);
      $task->exec("git push $remote_name $identifier");
    }
    $result = $task->run();

    if (!$result->wasSuccessful()) {
      throw new BltException("Failed to push deployment artifact!");
    }
  }
protected function push($identifier, $options) {
    if ($options['dry-run']) {
      $this->logger->warning("Skipping push of deployment artifact. deploy.dryRun is set to true.");
      return FALSE;
    }
    else {
      $this->say("Pushing artifact to git.remotes...");
    }

    $task = $this->taskExecStack()
      ->dir($this->deployDir);
    foreach ($this->getConfigValue('git.remotes') as $remote) {
      $remote_name = md5($remote);
      $task->exec("git push $remote_name $identifier");
    }
    $result = $task->run();

    if (!$result->wasSuccessful()) {
      throw new BltException("Failed to push deployment artifact!");
    }
  }
protected function push ( $ identifier , $ options ) { if ( $ options [ 'dry-run' ] ) { $ this -> logger -> warning ( "Skipping push of deployment artifact. deploy.dryRun is set to true." ) ; return FALSE ; } else { $ this -> say ( "Pushing artifact to git.remotes..." ) ; } $ task = $ this -> taskExecStack ( ) -> dir ( $ this -> deployDir ) ; foreach ( $ this -> getConfigValue ( 'git.remotes' ) as $ remote ) { $ remote_name = md5 ( $ remote ) ; $ task -> exec ( "git push $remote_name $identifier" ) ; } $ result = $ task -> run ( ) ; if ( ! $ result -> wasSuccessful ( ) ) { throw new BltException ( "Failed to push deployment artifact!" ) ; } }
Pushes the artifact to git.remotes.
@param $identifier
@param $options
@return bool
@throws BltException
Pushes the artifact to git . remotes .