src/Rocketeer/Services/Connections/Shell/Modules/Filesystem.php
public function upload($file, $destination = null)
    {
        if (!file_exists($file)) {
            return;
        }

        // Get contents and destination
        $destination = $destination ?: basename($file);

        $this->put($destination, file_get_contents($file));
    }
public function upload($file, $destination = null)
    {
        if (!file_exists($file)) {
            return;
        }

        // Get contents and destination
        $destination = $destination ?: basename($file);

        $this->put($destination, file_get_contents($file));
    }
public function upload ( $ file , $ destination = null ) { if ( ! file_exists ( $ file ) ) { return ; } // Get contents and destination $ destination = $ destination ? : basename ( $ file ) ; $ this -> put ( $ destination , file_get_contents ( $ file ) ) ; }
Upload a local file to remote.

@param string      $file
@param string|null $destination
Upload a local file to remote .