Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
Update abstra-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
abstra-bot committed Mar 17, 2023
1 parent ce69175 commit 93f1880
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion abstra_cli/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def deploy(**kwargs):
for job in jobs:
Jobs.add(upsert=True, **job)

files = deploy_data.pop("files", None)
files = deploy_data.pop("files", ["."]) # review security implications
if files:
if isinstance(files, dict):
Files.add(**files)
Expand Down
5 changes: 5 additions & 0 deletions abstra_cli/utils/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@ def get_ignore_files(dir):
IGNOREFILE = os.path.join(dir, ABSTRA_IGNORE)
abstra_path = os.path.join(dir, ABSTRA_FOLDER)
ignored = [IGNOREFILE, abstra_path]

GITIGNORE = os.path.join(dir, ".gitignore")
if os.path.exists(IGNOREFILE):
with open(IGNOREFILE, "r") as f:
ignored.extend([os.path.join(dir, f) for f in f.read().split("\n") if f])
elif os.path.exists(GITIGNORE):
with open(GITIGNORE, "r") as f:
ignored.extend([os.path.join(dir, f) for f in f.read().split("\n") if f])
return ignored


Expand Down

0 comments on commit 93f1880

Please sign in to comment.