def get_elasticsearch(): """ ACT: retrives elasticsearch EXEC: fab get_elasticsearch """ package = get_conf('elasticsearch') dl_handler = WgetHandler() _prepare(package) for url in package['source_urls']: dl_handler.download(url, dir=package['sources_path'])
def get_kibana(): """ ACT: retrives kibana EXEC: fab get_kibana """ package = get_conf('kibana3') dl_handler = WgetHandler() _prepare(package) for url in package['source_urls']: dl_handler.download(url, dir=package['sources_path'])
def get_celery(download=False): package = get_conf('celery') dl_handler = WgetHandler() common = CommonHandler() py_handler = PythonHandler() _prepare(package) py_handler.venv(package['sources_path']) tar_file = '{0}/{1}.tar.gz'.format(package['sources_path'], package['name']) for url in package['source_urls']: dl_handler.download(url, file=tar_file) common.untar(package['sources_path'], tar_file) if download: for module in package['modules']: py_handler.pip(module, package['sources_path'])
def get_celery(download=False): package = get_conf('celery') dl_handler = WgetHandler() common = CommonHandler() py_handler = PythonHandler() _prepare(package) py_handler.venv(package['sources_path']) tar_file = '{0}/{1}.tar.gz'.format( package['sources_path'], package['name']) for url in package['source_urls']: dl_handler.download(url, file=tar_file) common.untar(package['sources_path'], tar_file) if download: for module in package['modules']: py_handler.pip(module, package['sources_path'])