Exemple #1
0
def bungeni_update(version="default"):
    """
        Update the bungeni source
     """

    tasks = bungeni.BungeniTasks()
    tasks.update(version)
Exemple #2
0
def bungeni_bootstrap():
    """
    Bootstrap the installation
    """

    tasks = bungeni.BungeniTasks()
    tasks.bootstrap_instance()
Exemple #3
0
def bungeni_check():
    """
    Check missing packages for bungeni.buildout
    """

    tasks = bungeni.BungeniTasks()
    __check(tasks)
Exemple #4
0
def install_bungeni_custom():
    """
    Installs bungeni_custom into the bungeni python
    """

    tasks = bungeni.BungeniTasks()
    tasks.install_bungeni_custom()
Exemple #5
0
def bungeni_build():
    """
    Runs the bungeni buildout
    """

    tasks = bungeni.BungeniTasks()
    tasks.build()
Exemple #6
0
def bungeni_build_opt():
    """
    Runs an optimistic bungeni buildout (-N)
    """

    tasks = bungeni.BungeniTasks()
    tasks.build_opt()
Exemple #7
0
def setup_bungeni_admin():
    """
    Setups the bungeni admin user
    """

    tasks = bungeni.BungeniTasks()
    tasks.add_admin_user()
Exemple #8
0
def bungeni_setupdb():
    """
    Sets up the postgresql db
    """

    tasks = bungeni.BungeniTasks()
    tasks.setupdb()
Exemple #9
0
def bungeni_update():
    """
        Update the bungeni source
     """

    tasks = bungeni.BungeniTasks()
    tasks.update()
Exemple #10
0
def bungeni_setup():
    """
    checkout & bootstrap bungeni source;setup bungeni_custom;generate deploy ini
    """

    tasks = bungeni.BungeniTasks()
    tasks.setup()
Exemple #11
0
def setup_bungeni_custom():
    """
    Installs the bungeni_custom library into the bungeni python site-packages folder
    """

    tasks = bungeni.BungeniTasks()
    tasks.install_bungeni_custom()
Exemple #12
0
def db_dump_data(to_path):
    """
    Dumps the bungeni db data
    """

    tasks = bungeni.BungeniTasks()
    tasks.dump_data(to_path)
Exemple #13
0
def bungeni_local_config():
    """
    Generate a local buildout configuration.
    This is relevant only if you are using a local cache
    """

    tasks = bungeni.BungeniTasks()
    tasks.local_config()
Exemple #14
0
def db_dump_data(to_path):
    """
    Dumps the bungeni db data
    Example: ./fl db_dump_data:/home/undesa/db-dump.txt
    """

    tasks = bungeni.BungeniTasks()
    tasks.dump_data(to_path)
Exemple #15
0
def db_make_empty():
    """
    Make the bungeni db blank
    """

    __db_load_services_stop()
    tasks = bungeni.BungeniTasks()
    tasks.reset_db()
    __db_load_services_start()
Exemple #16
0
def db_load_mindata():
    """
    Load minimal data from the testdatadmp folder
    """

    __db_load_services_stop()
    tasks = bungeni.BungeniTasks()
    tasks.reset_schema()
    tasks.load_min_data()
    __db_load_services_start()
Exemple #17
0
def db_load_largedata():
    """
    Load large metadata
    """
    __db_load_services_stop()
    tasks = bungeni.BungeniTasks()
    tasks.reset_db()
    tasks.load_large_data()
    tasks.restore_large_attachments()
    __db_load_services_start()
Exemple #18
0
def db_load_demodata():
    """
    Load demo data from the testdatadmp folder
    """

    __db_load_services_stop()
    tasks = bungeni.BungeniTasks()
    tasks.reset_schema()
    tasks.load_demo_data()
    tasks.restore_attachments()
    __db_load_services_start()
Exemple #19
0
def bungeni_install():
    """
    Checkout,bootstrap and build bungeni
    Revision is based on the 'release' parameter in setup.ini
    """

    tasks = bungeni.BungeniTasks()
    # bootstrap
    tasks.setup()
    # do any local configuations
    tasks.local_config()
    # buildout
    tasks.build()
    # setup-database
    tasks.setupdb()
Exemple #20
0
def config_ini(which_ini):
    """
    Config deployment ini files : bungeni, plone, portal
    """

    tasks = None
    if which_ini == "bungeni":
        tasks = bungeni.BungeniTasks()
    elif which_ini == "plone":
        tasks = bungeni.PloneTasks()
    elif which_ini == "portal":
        tasks = bungeni.PortalTasks()
    else:
        abort("Nothing to do!option must be one of: bungeni, plone or portal")
        return
    tasks.deploy_ini()
    tasks.update_deployini()
Exemple #21
0
def bungeni_install(version="default"):
    """
    Checkout,bootstrap and build bungeni
    version can be 'default' to use the pinned version
    or can be 'HEAD' which updates the bungeni.main and bungeni_custom packages
    to HEAD
    """

    tasks = bungeni.BungeniTasks()
    # bootstrap
    tasks.setup(version)
    # do any local configuations
    tasks.local_config()
    # buildout
    tasks.build()
    # setup-database
    tasks.setupdb()
Exemple #22
0
def restore_bungeni_custom():

    tasks = bungeni.BungeniTasks()
    tasks.install_bungeni_custom()