src/Rocketeer/Services/Connections/Shell/Modules/Core.php
public function runInFolder($folder = null, $tasks = [])
    {
        // Convert to array
        if (!is_array($tasks)) {
            $tasks = [$tasks];
        }

        // Prepend folder
        array_unshift($tasks, 'cd '.$this->paths->getFolder($folder));

        return $this->run($tasks);
    }
public function runInFolder($folder = null, $tasks = [])
    {
        // Convert to array
        if (!is_array($tasks)) {
            $tasks = [$tasks];
        }

        // Prepend folder
        array_unshift($tasks, 'cd '.$this->paths->getFolder($folder));

        return $this->run($tasks);
    }
public function runInFolder ( $ folder = null , $ tasks = [ ] ) { // Convert to array if ( ! is_array ( $ tasks ) ) { $ tasks = [ $ tasks ] ; } // Prepend folder array_unshift ( $ tasks , 'cd ' . $ this -> paths -> getFolder ( $ folder ) ) ; return $ this -> run ( $ tasks ) ; }
Run commands in a folder.

@param string|null  $folder
@param string|array $tasks

@return string|null
Run commands in a folder .