REBELinBLUE\Deployer\Presenters\ProjectPresenter::presentCcTrayStatus PHP Method

presentCcTrayStatus() public method

Returns the build status needed by CCTray These strings can not be translated.
public presentCcTrayStatus ( ) : string
return string
    public function presentCcTrayStatus()
    {
        if ($this->status === Project::FINISHED || $this->status === Project::FAILED) {
            return 'Sleeping';
        } elseif ($this->status === Project::DEPLOYING) {
            return 'Building';
        } elseif ($this->status === Project::PENDING) {
            return 'Pending';
        }
        return 'Unknown';
    }