def undeploy(jboss, **kwargs): ctx.logger.info('Starting undeploy') utils = Utils() resource_name = jboss['resource-name'] ctx.logger.info('Filename to undeploy ' + resource_name) jcli = JBossClient(utils.tempdir, jboss) jcli.create_undeploy_command(resource_name) jcli.run_script()
def deploy(jboss, jdbc_driver=None, datasource=None, **kwargs): ctx.logger.info('Starting deploy') utils = Utils() resource_name = jboss['resource-name'] ctx.logger.info('Deployment filename {0}'.format(resource_name)) jcli = JBossClient(utils.tempdir, jboss) resource_dir = jboss['resource-dir'] if (jdbc_driver is not None) and (datasource is not None): install_driver(jcli, jdbc_driver, datasource) jcli.create_deploy_command(resource_dir, resource_name) jcli.run_script()