Skip to content

Commit

Permalink
feat: order of ops for launch
Browse files Browse the repository at this point in the history
  • Loading branch information
p7-mark committed May 5, 2024
1 parent a6952c7 commit 826134a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sceptre/cli/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@ def print_operations(self, prune: bool):
pruner = self._make_pruner(self._context, self._make_plan)
pruner.print_operations()

dependencies = ""
for stack in deploy_plan:
if stack.ignore or stack.obsolete:
dependencies += "{}{} **skipped{}\n".format(Fore.LIGHTWHITE_EX, stack.name, Style.RESET_ALL)
else:
dependencies += "{}{}{}\n".format(Fore.YELLOW, stack.name, Style.RESET_ALL)

print(f"The following stacks, in the following order, will be deployed:\n{dependencies}")

def launch(self, prune: bool) -> int:
deploy_plan = self._create_deploy_plan()
stacks_to_skip = self._get_stacks_to_skip(deploy_plan, prune)
Expand Down

0 comments on commit 826134a

Please sign in to comment.