fabfile/utils.py
def edit_ini(path):
    """Yield an IniFile object for the given ini remote file path."""
    tmp_file = tmp()
    # copy the remote file to the local /tmp dir
    get(path, tmp_file)
    # get an ini file manager
    ini = IniFile(tmp_file)
    # let the invoker modify file contents
    yield ini
    
    fobj = StringIO()
    fobj.write(ini.get_contents())
    # transfer it back to the remote machine
    put(fobj, path)
    fobj.close()
Yield an IniFile object for the given ini remote file path.
Yield an IniFile object for the given ini remote file path.
Yield an IniFile object for the given ini remote file path .
def edit_ini(path):
    tmp_file = tmp()
    get(path, tmp_file)
    ini = IniFile(tmp_file)
    yield ini
    fobj = StringIO()
    fobj.write(ini.get_contents())
    put(fobj, path)
    fobj.close()
def edit_ini ( path ) : tmp_file = tmp ( ) get ( path , tmp_file ) ini = IniFile ( tmp_file ) yield ini fobj = StringIO ( ) fobj . write ( ini . get_contents ( ) ) put ( fobj , path ) fobj . close ( )
Yield an IniFile object for the given ini remote file path.
Yield an IniFile object for the given ini remote file path .
"""Yield an IniFile object for the given ini remote file path.""" # copy the remote file to the local /tmp dir # get an ini file manager # let the invoker modify file contents # transfer it back to the remote machine
path