Skip to content

Commit d5194e0

Browse files
author
Matt Land
committed
ignore gits
1 parent fc29d38 commit d5194e0

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

deploylambda/command_line.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def deploy():
2626
def update():
2727
deploylambda.setupOS()
2828
lambda_name = getfirstarg()
29+
deploylambda.create_zip(lambda_name)
2930
deploylambda.deploy_new_lambda(lambda_name)
3031
exit(0)
3132

deploylambda/deploylambda.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ def create_zip(lambda_name):
2727
if os.path.isfile(zipname):
2828
os.unlink(zipname)
2929
zf = zipfile.ZipFile(zipname, mode='w', compression=zipfile.ZIP_DEFLATED)
30-
31-
for root, dirs, files in os.walk('.'):
30+
for root, dirs, files in os.walk('.', topdown=True):
31+
if '.git' in dirs:
32+
dirs.remove('.git')
3233
for file in files:
3334
if file == '.DS_Store':
3435
continue

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def readme():
2727
'backup-lambda=deploylambda.command_line:backup',
2828
'list-lambda=deploylambda.command_line:list',
2929
'unpack-lambda=deploylambda.command_line:unpack',
30+
'update-lambda=deploylambda.command_line:update',
3031
]
3132
},
3233
)

0 commit comments

Comments
 (0)