def exist_install(): """ Installs eXist, WARNING: Will overwrite any existing installation """ stop_exist("IGNORE_ERROR") tasks = bungeni.XmldbTasks() tasks.setup_exist()
def exist_dump_data(to_path): """ Dumps the eXits-db data Example: ./fl exist_dump_data:/home/undesa/on_db_r10186.tar.gz """ xmldbtasks = bungeni.XmldbTasks() xmldbtasks.dump_data(to_path)
def exist_deploy_mode(): """ Switch eXist to Deployment mode, will restart eXist automatically """ stop_exist("IGNORE_ERR") tasks = bungeni.XmldbTasks() tasks.switchto_deploy_mode() start_exist("IGNORE_ERR")
def install_config_editor(): """ Install Bungeni ConfigEditor on eXist-db """ tasks = bungeni.XmldbTasks() tasks.download_ce() tasks.ant_prop_config() tasks.ant_ce_setup_config() tasks.ant_ce_install()
def exist_load_demodata(): """ Loads demodata from the eXist repository """ start_exist("IGNORE_ERROR") tasks = bungeni.XmldbTasks() tasks.setup_exist_demo_data() tasks.ant_demo_setup_config() tasks.ant_demo_install()
def exist_fw_install(): """ Installs Bungeni eXist framework, WARNING: Will overwrite any existing installation """ start_exist("IGNORE_ERROR") tasks = bungeni.XmldbTasks() tasks.download_fw() tasks.ant_prop_config() tasks.ant_fw_setup_config() tasks.ant_fw_install()
def exist_reset(): """ Reset data in eXist repository """ start_exist("IGNORE_ERROR") import time time.sleep(5) tasks = bungeni.XmldbTasks() tasks.ant_prop_config() tasks.ant_demo_reset_config() tasks.ant_demo_reset()
def exist_install(): """ Installs eXist, WARNING: Will overwrite any existing installation """ stop_exist("IGNORE_ERROR") tasks = bungeni.XmldbTasks() tasks.setup_exist() # install in deployment mode by Default # you will need to explicitly switch to Development mode to access # XML UI tasks.switchto_deploy_mode()
def exist_fw_install(): """ Installs Bungeni eXist framework, WARNING: Will overwrite any existing installation """ start_exist("IGNORE_ERROR") import time time.sleep(5) tasks = bungeni.XmldbTasks() tasks.download_fw() tasks.ant_prop_config() tasks.ant_fw_setup_config() tasks.ant_indexes_install() tasks.ant_fw_install() gluetasks = bungeni.GlueScriptTasks() gluetasks.setup_i18n_catalogues()
def ant_run(buildfile="build.xml"): """ Run the Ant Script provided as the parameter """ tasks = bungeni.XmldbTasks() tasks.ant_run(buildfile)
def ant_version(): """ Get the Ant version used by eXist """ tasks = bungeni.XmldbTasks() tasks.ant_version()
def ant_run(buildfile="build.xml"): tasks = bungeni.XmldbTasks() tasks.ant_run(buildfile)
def ant_version(): tasks = bungeni.XmldbTasks() tasks.ant_version()