src/Commands/RsyncCommand.php
public function rsyncCommand($src, $dest, array $rsyncOptions)
    {
        if (strpos($src, ':') !== false) {
            $site_env_id = $this->getSiteEnvIdFromPath($src);
            $src = $this->removeSiteEnvIdFromPath($src);
        } else {
            $site_env_id = $this->getSiteEnvIdFromPath($dest);
            $dest = $this->removeSiteEnvIdFromPath($dest);
        }

        return $this->rsync($site_env_id, $src, $dest, $rsyncOptions);
    }
public function rsyncCommand($src, $dest, array $rsyncOptions)
    {
        if (strpos($src, ':') !== false) {
            $site_env_id = $this->getSiteEnvIdFromPath($src);
            $src = $this->removeSiteEnvIdFromPath($src);
        } else {
            $site_env_id = $this->getSiteEnvIdFromPath($dest);
            $dest = $this->removeSiteEnvIdFromPath($dest);
        }

        return $this->rsync($site_env_id, $src, $dest, $rsyncOptions);
    }
public function rsyncCommand ( $ src , $ dest , array $ rsyncOptions ) { if ( strpos ( $ src , ':' ) !== false ) { $ site_env_id = $ this -> getSiteEnvIdFromPath ( $ src ) ; $ src = $ this -> removeSiteEnvIdFromPath ( $ src ) ; } else { $ site_env_id = $ this -> getSiteEnvIdFromPath ( $ dest ) ; $ dest = $ this -> removeSiteEnvIdFromPath ( $ dest ) ; } return $ this -> rsync ( $ site_env_id , $ src , $ dest , $ rsyncOptions ) ; }
Call rsync on a Pantheon site

@command remote:rsync
@aliases rsync

@param string $src Source path
@param string $dest Destination path
@param array $rsyncOptions All of the options after -- (passed to rsync)
Call rsync on a Pantheon site