Skip to content

Commit

Permalink
kvargs -> kwargs.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvest committed Jun 25, 2008
1 parent 7d065fb commit 1bb1e88
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions fabfile.py
Expand Up @@ -20,12 +20,13 @@
nongnu_user = 'karmazilla',
)

def clean():
def clean(**kwargs):
"Recurse the directory tree and remove all files matched by .gitignore."
# passing -delete to find doesn't work for directories, hence xargs rm -r
local('cat .gitignore | xargs -I PATTERN '
+ 'find . -name PATTERN -not -path "./.git/*" | (xargs rm -r || true)')
local('git gc --prune')
if not "nogc" in kwargs:
local('git gc --prune')

def ready_files():
local('mkdir dist')
Expand All @@ -46,7 +47,7 @@ def ready_files():
+ '(cd dist && tee %(prefix)s.tar.gz | tar xzf -)')
local('gpg -b --use-agent %(filename)s')

def release(**kvargs):
def release(**kwargs):
"Create a new release of Fabric, and upload it to our various services."
dry = 'dry' in kvargs
if not dry:
Expand All @@ -64,14 +65,14 @@ def release(**kvargs):
local(distutil_cmd)
upload_website()

def install(**kvargs):
def install(**kwargs):
"Install Fabric locally."
if 'notest' not in kvargs:
test()
local('python setup.py build')
local('sudo python setup.py install')

def layout(**kvargs):
def layout(**kvwrgs):
"""
Print a layout-overview of fabric.py to the console.
Expand Down

0 comments on commit 1bb1e88

Please sign in to comment.