def render(self, results): app.log.debug("Rendering summary results: {}".format(results)) common.write_results(results, self.save_path) self.view = SummaryView(app, results, self.finish) app.ui.set_header(title="Deploy Summary", excerpt="Deployment summary for {}".format( app.config['spell'])) app.ui.set_body(self.view) app.ui.set_footer("Your big software is deployed, press " "(Q) key to return to shell.")
def render(self, results): common.write_results(results, self.save_path) utils.info("Summary") table = PrettyTable() table.field_names = ["Application", "Result"] for k, v in results.items(): application_name = colored(k, 'blue', attrs=['bold']) result = colored(v, 'green', attrs=['bold']) table.add_row([application_name, result]) print(table) utils.info("Installation of your big software is now complete.")
def render(self, results): common.write_results(results, self.save_path) utils.info("Installation of your big software is now complete.")