src/Robo/Commands/Artifact/AcHooksCommand.php
protected function sendPostCodeUpdateNotifications($site, $target_env, $source_branch, $deployed_tag, $success) {
    $is_tag = $source_branch != $deployed_tag;

    if ($success) {
      if ($is_tag) {
        $message = "An updated deployment has been made to *$site.$target_env* using tag *$deployed_tag*.";
      }
      else {
        $message = "An updated deployment has been made to *$site.$target_env* using branch *$source_branch* as *$deployed_tag*.";
      }
    }
    else {
      $message = "Deployment has FAILED for environment *$site.$target_env*.";
    }

    $this->notifySlack($success, $message);
  }
protected function sendPostCodeUpdateNotifications($site, $target_env, $source_branch, $deployed_tag, $success) {
    $is_tag = $source_branch != $deployed_tag;

    if ($success) {
      if ($is_tag) {
        $message = "An updated deployment has been made to *$site.$target_env* using tag *$deployed_tag*.";
      }
      else {
        $message = "An updated deployment has been made to *$site.$target_env* using branch *$source_branch* as *$deployed_tag*.";
      }
    }
    else {
      $message = "Deployment has FAILED for environment *$site.$target_env*.";
    }

    $this->notifySlack($success, $message);
  }
protected function sendPostCodeUpdateNotifications ( $ site , $ target_env , $ source_branch , $ deployed_tag , $ success ) { $ is_tag = $ source_branch != $ deployed_tag ; if ( $ success ) { if ( $ is_tag ) { $ message = "An updated deployment has been made to *$site.$target_env* using tag *$deployed_tag*." ; } else { $ message = "An updated deployment has been made to *$site.$target_env* using branch *$source_branch* as *$deployed_tag*." ; } } else { $ message = "Deployment has FAILED for environment *$site.$target_env*." ; } $ this -> notifySlack ( $ success , $ message ) ; }
Sends updates to notification endpoints.

@param $site
@param $target_env
@param $source_branch
@param $deployed_tag
@param $success
Sends updates to notification endpoints .