def bungeni_update(version="default"): """ Update the bungeni source """ tasks = bungeni.BungeniTasks() tasks.update(version)
def bungeni_bootstrap(): """ Bootstrap the installation """ tasks = bungeni.BungeniTasks() tasks.bootstrap_instance()
def bungeni_check(): """ Check missing packages for bungeni.buildout """ tasks = bungeni.BungeniTasks() __check(tasks)
def install_bungeni_custom(): """ Installs bungeni_custom into the bungeni python """ tasks = bungeni.BungeniTasks() tasks.install_bungeni_custom()
def bungeni_build(): """ Runs the bungeni buildout """ tasks = bungeni.BungeniTasks() tasks.build()
def bungeni_build_opt(): """ Runs an optimistic bungeni buildout (-N) """ tasks = bungeni.BungeniTasks() tasks.build_opt()
def setup_bungeni_admin(): """ Setups the bungeni admin user """ tasks = bungeni.BungeniTasks() tasks.add_admin_user()
def bungeni_setupdb(): """ Sets up the postgresql db """ tasks = bungeni.BungeniTasks() tasks.setupdb()
def bungeni_update(): """ Update the bungeni source """ tasks = bungeni.BungeniTasks() tasks.update()
def bungeni_setup(): """ checkout & bootstrap bungeni source;setup bungeni_custom;generate deploy ini """ tasks = bungeni.BungeniTasks() tasks.setup()
def setup_bungeni_custom(): """ Installs the bungeni_custom library into the bungeni python site-packages folder """ tasks = bungeni.BungeniTasks() tasks.install_bungeni_custom()
def db_dump_data(to_path): """ Dumps the bungeni db data """ tasks = bungeni.BungeniTasks() tasks.dump_data(to_path)
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()
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)
def db_make_empty(): """ Make the bungeni db blank """ __db_load_services_stop() tasks = bungeni.BungeniTasks() tasks.reset_db() __db_load_services_start()
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()
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()
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()
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()
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()
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()
def restore_bungeni_custom(): tasks = bungeni.BungeniTasks() tasks.install_bungeni_custom()