protected function setDockerSyncNameInEnv()
    {
        $project_root = ProjectX::projectRoot();
        $project_name = ProjectX::getProjectMachineName();
        $sync_name = uniqid("$project_name-", false);

        $this->taskWriteToFile("{$project_root}/.env")
            ->append()
            ->appendUnlessMatches('/SYNC_NAME=\w+/', "SYNC_NAME=$sync_name")
            ->run();

        return $this;
    }
protected function setDockerSyncNameInEnv()
    {
        $project_root = ProjectX::projectRoot();
        $project_name = ProjectX::getProjectMachineName();
        $sync_name = uniqid("$project_name-", false);

        $this->taskWriteToFile("{$project_root}/.env")
            ->append()
            ->appendUnlessMatches('/SYNC_NAME=\w+/', "SYNC_NAME=$sync_name")
            ->run();

        return $this;
    }
protected function setDockerSyncNameInEnv ( ) { $ project_root = ProjectX :: projectRoot ( ) ; $ project_name = ProjectX :: getProjectMachineName ( ) ; $ sync_name = uniqid ( "$project_name-" , false ) ; $ this -> taskWriteToFile ( "{$project_root}/.env" ) -> append ( ) -> appendUnlessMatches ( '/SYNC_NAME=\w+/' , "SYNC_NAME=$sync_name" ) -> run ( ) ; return $ this ; }
Set docker-sync name in environment file; if not already set.
Set docker - sync name in environment file ; if not already set .