Skip to content

Commit

Permalink
adding 'update-all'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared Haight committed Aug 3, 2016
1 parent 5b6f898 commit 57b2c99
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ def use_module(module, all_trigger):

if int(all_trigger) == 1:
prompt = "run"

if int(all_trigger) == 2:
prompt = "update"

# if we are using run, check first to see if its there, if so, do
# an upgrade
Expand Down Expand Up @@ -611,6 +614,13 @@ def use_module(module, all_trigger):
else:
print_status(
"Alright boss. Not installing right now. Tell me when. I want that shiny. I want it now.")

if "update_all" in prompt[1]:
for dir in os.listdir(base_install): # ptes dir
for subdir in os.listdir(os.path.join(base_install, dir)): # module
module = dir+"/"+subdir
print module
use_module(module, 2)

if os.path.isfile(definepath() + "/" + prompt[1] + ".py"):
counter = 1
Expand Down

0 comments on commit 57b2c99

Please sign in to comment.