untar from run command in fibre
- by Shah.Bhavesh
i want to untar file from source to destination
with below statement
`def untar(source,destination):
run("tar -xf {0} {1}".format(source,destination))
`
i am getting Error
C:\Users\test\Desktop\fabric>fab -H user@host-p pass untar:source
=/shared/sample.tar,destination=/home/
Traceback (most recent call last):
File "C:\Users\shasmukh\AppData\Roaming\Python\Python27\site-packages\fabric\m
ain.py", line 630, in main
docstring, callables, default = load_fabfile(fabfile)
File "C:\Users\shasmukh\AppData\Roaming\Python\Python27\site-packages\fabric\m
ain.py", line 163, in load_fabfile
imported = importer(os.path.splitext(fabfile)[0])
File "C:\Users\shasmukh\Desktop\fabric\fabfile.py", line 11
def copy(source,destination)
^
SyntaxError: invalid syntax