Rocketeer\Rocketeer::getDetectedStage PHP Метод

getDetectedStage() публичный статический Метод

Returns what stage Rocketeer thinks he's in.
public static getDetectedStage ( string $application = 'application', string | null $path = null ) : string | false
$application string
$path string | null
Результат string | false
    public static function getDetectedStage($application = 'application', $path = null)
    {
        $current = $path ?: realpath(__DIR__);
        preg_match('/' . $application . '\\/([a-zA-Z0-9_-]+)\\/releases\\/([0-9]{14})/', $current, $matches);
        return isset($matches[1]) ? $matches[1] : false;
    }