예제 #1
0
def create(options, *args, **kwargs):
    ''' Creates/bootstraps the database '''
    from libs.ConfigManager import ConfigManager  # Sets up logging
    from models import create_tables, boot_strap
    print(INFO+'%s : Creating the database ...' % current_time())
    create_tables()
    print(INFO+'%s : Bootstrapping the database ...' % current_time())
    boot_strap()
예제 #2
0
def create(options, *args, **kwargs):
    ''' Creates/bootstraps the database '''
    from libs.ConfigManager import ConfigManager  # Sets up logging
    from models import create_tables, boot_strap
    print(INFO + '%s : Creating the database ...' % current_time())
    create_tables()
    print(INFO + '%s : Bootstrapping the database ...' % current_time())
    boot_strap()
def create():
    """ Creates the database """
    print (ConsoleColors.INFO + '%s : Creating the database ... ' %
           current_time())
    __create__()
    if len(argv) == 3 and argv[2] == 'bootstrap':
        print (ConsoleColors.INFO +
               '%s : Bootstrapping the database ... ' % current_time())
        boot_strap()
예제 #4
0
def create():
    ''' Creates/bootstraps the database '''
    from libs.ConfigManager import ConfigManager  # Sets up logging
    from models import create_tables, boot_strap
    print(INFO + '%s : Creating the database ... ' % current_time())
    create_tables()
    if len(argv) == 3 and (argv[2] == 'bootstrap' or argv[2] == '-b'):
        print('\n\n\n' + INFO + \
              '%s : Bootstrapping the database ... \n' % current_time())
        boot_strap()
예제 #5
0
def create():
    """ Creates/bootstraps the database """
    from libs.ConfigManager import ConfigManager  # Sets up logging
    from models import create_tables, boot_strap

    print(INFO + "%s : Creating the database ... " % current_time())
    create_tables()
    if len(argv) == 3 and (argv[2] == "bootstrap" or argv[2] == "-b"):
        print("\n\n\n" + INFO + "%s : Bootstrapping the database ... \n" % current_time())
        boot_strap()
예제 #6
0
def create():
    ''' Creates/bootstraps the database '''
    from libs.ConfigManager import ConfigManager  # Sets up logging
    from models import create_tables, boot_strap
    print(INFO+'%s : Creating the database ...' % current_time())
    create_tables()
    print(INFO+'%s : Bootstrapping the database ...' % current_time())
    try:
        boot_strap()
    except:
        print(WARN+"%s : Database has already been bootstrapped" % current_time())
예제 #7
0
def create():
    ''' Creates/bootstraps the database '''
    from libs.ConfigManager import ConfigManager  # Sets up logging
    from models import __create__, boot_strap
    print('%s : Creating the database ... ' %
          current_time())
    __create__()
    if len(argv) == 3 and (argv[2] == 'bootstrap' or argv[2] == '-b'):
        print('\n\n\n' +
            '%s : Bootstrapping the database ... \n' % current_time())
        boot_strap()
예제 #8
0
파일: __main__.py 프로젝트: hathcox/Arthur
def create():
    print(INFO + 'Creating the database ... ')
    __create__()
    if len(argv) == 3 and argv[2] == 'bootstrap':
        print(INFO + 'Bootstrapping the database ... ')
        boot_strap()