def sanity_check_plan(collector, stack, artifact, **kwargs): """sanity check a predefined list of stacks in order""" plan = artifact if artifact else stack checked = [] builder = Builder() stacks = collector.configuration["stacks"] for stack in Plan.find_stacks(collector.configuration, stacks, plan): builder.sanity_check(stacks[stack], stacks, checked=checked)
def deploy_plan(collector, stack, artifact, **kwargs): """Deploy a predefined list of stacks in order""" plan = artifact if artifact else stack made = [] checked = [] deployer = Deployer() stacks = collector.configuration["stacks"] for stack in Plan.find_stacks(collector.configuration, stacks, plan): deployer.deploy_stack(stacks[stack], stacks, made=made, checked=checked)