src/Rocketeer/Tasks/Setup.php
protected function createStages()
    {
        // Get stages
        $availableStages = $this->connections->getAvailableStages();
        $originalStage = $this->connections->getCurrentConnectionKey()->stage;
        if (empty($availableStages)) {
            $availableStages = [null];
        }

        // Create folders
        $mapping = $this->config->get('remote.directories');
        foreach ($availableStages as $stage) {
            $this->connections->setStage($stage);
            $this->createFolder($mapping['releases']);
            $this->createFolder($mapping['current']);
            $this->createFolder($mapping['shared']);
        }

        if ($originalStage) {
            $this->connections->setStage($originalStage);
        }
    }
protected function createStages()
    {
        // Get stages
        $availableStages = $this->connections->getAvailableStages();
        $originalStage = $this->connections->getCurrentConnectionKey()->stage;
        if (empty($availableStages)) {
            $availableStages = [null];
        }

        // Create folders
        $mapping = $this->config->get('remote.directories');
        foreach ($availableStages as $stage) {
            $this->connections->setStage($stage);
            $this->createFolder($mapping['releases']);
            $this->createFolder($mapping['current']);
            $this->createFolder($mapping['shared']);
        }

        if ($originalStage) {
            $this->connections->setStage($originalStage);
        }
    }
protected function createStages ( ) { // Get stages $ availableStages = $ this -> connections -> getAvailableStages ( ) ; $ originalStage = $ this -> connections -> getCurrentConnectionKey ( ) -> stage ; if ( empty ( $ availableStages ) ) { $ availableStages = [ null ] ; } // Create folders $ mapping = $ this -> config -> get ( 'remote.directories' ) ; foreach ( $ availableStages as $ stage ) { $ this -> connections -> setStage ( $ stage ) ; $ this -> createFolder ( $ mapping [ 'releases' ] ) ; $ this -> createFolder ( $ mapping [ 'current' ] ) ; $ this -> createFolder ( $ mapping [ 'shared' ] ) ; } if ( $ originalStage ) { $ this -> connections -> setStage ( $ originalStage ) ; } }
Create the Application's folders.
Create the Application s folders .