示例#1
0
def upload_template(src, dest, *args, **kwargs):
    """
    Wrapper around Fabric's upload_template that sets +r.

    upload_template does not preserve file permissions, http://code.fabfile.org/issues/show/117
    """
    orig_upload_template(src, dest, *args, **kwargs)
示例#2
0
def upload_template(src, dest, *args, **kwargs):
    """
    Wrapper around Fabric's upload_template that sets +r.
    upload_template does not preserve file permissions, http://code.fabfile.org/issues/show/117
    """
    orig_upload_template(src, dest, *args, **kwargs)
    sudo('chmod +r %s' % dest)
示例#3
0
文件: remote.py 项目: tuut/arke
 def upload_template(self, src, dest, *args, **kwargs):
     orig_upload_template(src, dest, *args, **kwargs)
     sudo('chmod +r %s' % dest)