Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)
Returns the rsync command used by :func:`ec2_rsync_download`. Takes the
same parameters as :func:`ec2_rsync_download`, except for the first
parameter, ``instancewrapper``, which is a :class:`Ec2InstanceWrapper`
object.

        def ec2_rsync_download_command(instancewrapper, remote_dir, local_dir,
                               rsync_args='-av', sync_content=False):
    """
    Returns the rsync command used by :func:`ec2_rsync_download`. Takes the
    same parameters as :func:`ec2_rsync_download`, except for the first
    parameter, ``instancewrapper``, which is a :class:`Ec2InstanceWrapper`
    object.
    """
    ssh_uri = instancewrapper.get_ssh_uri()
    key_filename = instancewrapper.get_ssh_key_filename()
    extra_ssh_args = awsfab_settings.EXTRA_SSH_ARGS
    remote_dir = rsyncformat_path(remote_dir, sync_content)
    rsync_cmd = ('rsync {rsync_args} -e "ssh -i {key_filename} {extra_ssh_args}" '
                 '{ssh_uri}:{remote_dir} {local_dir}').format(**vars())
    return rsync_cmd
        


src/a/w/awsfabrictasks-1.2.0/awsfabrictasks/ec2/tasks.py   awsfabrictasks(Download)
from api import ec2_rsync_upload_command
from api import ec2_rsync_download
from api import ec2_rsync_download_command
 
 
        instancewrapper = Ec2InstanceWrapper.get_from_host_string()
        print 'Are you sure you want to run:'
        print '   ', ec2_rsync_download_command(instancewrapper, **kwargs)
        if not confirm('Proceed?'):
            abort('Aborted')

src/a/w/awsfabrictasks-HEAD/awsfabrictasks/ec2/tasks.py   awsfabrictasks(Download)
from api import ec2_rsync_upload_command
from api import ec2_rsync_download
from api import ec2_rsync_download_command
 
 
        instancewrapper = Ec2InstanceWrapper.get_from_host_string()
        print 'Are you sure you want to run:'
        print '   ', ec2_rsync_download_command(instancewrapper, **kwargs)
        if not confirm('Proceed?'):
            abort('Aborted')