def update_all(keystone_path=settings.KEYSTONE_ROOT, horizon_path=settings.HORIZON_ROOT): """Update both the Front and the Back-end, as well as their dependencies.""" update1_ok = keystone.update(keystone_path) update2_ok = horizon.update(horizon_path) if not update1_ok or not update2_ok: print red('\nUpdate finished, but some errors were found.\nPlease check the logs and make any necessary fixes.') else: print(green('Everything up to date!'))
def update_all(keystone_path=settings.KEYSTONE_ROOT, horizon_path=settings.HORIZON_ROOT): """Update both the Front and the Back-end, as well as their dependencies.""" update1_ok = keystone.update(keystone_path) update2_ok = horizon.update(horizon_path) if not update1_ok or not update2_ok: print red( '\nUpdate finished, but some errors were found.\nPlease check the logs and make any necessary fixes.' ) else: print(green('Everything up to date!'))
def update_all(keystone_path=settings.KEYSTONE_ROOT, horizon_path=settings.HORIZON_ROOT, version=None): """Update both the Front and the Back-end, as well as their dependencies.""" if not version: print yellow(('You called update without specifying a version. The default version you have configured' ' is {0}.').format(settings.KEYROCK_VERSION)) print red('Check the official repository to find the latest version') cont = prompt( yellow('Do you want to continue and update to the default version? [Y/n]: '), default='n', validate='[Y,n]') if cont != 'Y': print red('Cancel update') return update1_ok = keystone.update(keystone_path) update2_ok = horizon.update(horizon_path) if not update1_ok or not update2_ok: print red('\nUpdate finished, but some errors were found.\nPlease check the logs and make any necessary fixes.') else: print(green('Everything up to date!'))