src/Rocketeer/Services/Connections/Shell/Modules/Filesystem.php
public function setPermissions($folder)
    {
        // Get path to folder
        $folder = $this->releasesManager->getCurrentReleasePath($folder);
        $this->explainer->line('Setting permissions for '.$folder);

        // Get permissions options
        $callback = $this->config->getContextually('remote.permissions.callback');
        $commands = (array) $callback($folder, $this);

        // Cancel if setting of permissions is not configured
        if (empty($commands)) {
            return true;
        }

        return $this->modulable->runForCurrentRelease($commands);
    }
public function setPermissions($folder)
    {
        // Get path to folder
        $folder = $this->releasesManager->getCurrentReleasePath($folder);
        $this->explainer->line('Setting permissions for '.$folder);

        // Get permissions options
        $callback = $this->config->getContextually('remote.permissions.callback');
        $commands = (array) $callback($folder, $this);

        // Cancel if setting of permissions is not configured
        if (empty($commands)) {
            return true;
        }

        return $this->modulable->runForCurrentRelease($commands);
    }
public function setPermissions ( $ folder ) { // Get path to folder $ folder = $ this -> releasesManager -> getCurrentReleasePath ( $ folder ) ; $ this -> explainer -> line ( 'Setting permissions for ' . $ folder ) ; // Get permissions options $ callback = $ this -> config -> getContextually ( 'remote.permissions.callback' ) ; $ commands = ( array ) $ callback ( $ folder , $ this ) ; // Cancel if setting of permissions is not configured if ( empty ( $ commands ) ) { return true ; } return $ this -> modulable -> runForCurrentRelease ( $ commands ) ; }
Execute permissions actions on a file with the provided callback.

@param string $folder

@return string
Execute permissions actions on a file with the provided callback .