Skip to content

Commit

Permalink
fabfile: clean_assets choice in pack task
Browse files Browse the repository at this point in the history
Signed-off-by: Javier Martin Montull <[email protected]>
  • Loading branch information
jmartinm committed Jan 9, 2015
1 parent 2e603ba commit 0a236ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ def pack():
print("COLLECT_STORAGE cannot be set to 'flask.ext.collect.storage.link'")
return 1

choice = prompt("Clean and reinstall local assets? (y/N)", default="no")
if choice.lower() in ["y", "ye", "yes"]:
clean_assets()

choice = prompt("Build assets to gen? (Y/n)", default="yes")
if choice.lower() not in ["n", "no"]:
choice = prompt("Clean and reinstall local assets? (Y/n)", default="yes")
Expand Down

0 comments on commit 0a236ce

Please sign in to comment.