from st2common.util.pack import get_pack_ref_from_metadata from st2common.util.green import shell from st2common.util.versioning import complex_semver_match from st2common.util.versioning import get_stackstorm_version from st2common.util.versioning import get_python_version __all__ = [ 'download_pack', 'get_repo_url', 'eval_repo_url', 'apply_pack_owner_group', 'apply_pack_permissions', 'get_and_set_proxy_config' ] LOG = logging.getLogger(__name__) CONFIG_FILE = 'config.yaml' CURRENT_STACKSTORM_VERSION = get_stackstorm_version() CURRENT_PYTHON_VERSION = get_python_version() def download_pack(pack, abs_repo_base='/opt/stackstorm/packs', verify_ssl=True, force=False, proxy_config=None, force_owner_group=True, force_permissions=True, use_python3=False, logger=LOG): """ Download the pack and move it to /opt/stackstorm/packs. :param abs_repo_base: Path where the pack should be installed to.
'download_pack', 'get_repo_url', 'eval_repo_url', 'apply_pack_owner_group', 'apply_pack_permissions', 'get_and_set_proxy_config' ] LOG = logging.getLogger(__name__) CONFIG_FILE = 'config.yaml' CURRENT_STACKSTORM_VERSION = get_stackstorm_version() CURRENT_PYTHON_VERSION = get_python_version() def download_pack(pack, abs_repo_base='/opt/stackstorm/packs', verify_ssl=True, force=False, proxy_config=None, force_owner_group=True, force_permissions=True, logger=LOG): """ Download the pack and move it to /opt/stackstorm/packs. :param abs_repo_base: Path where the pack should be installed to. :type abs_repo_base: ``str`` :param pack: Pack name. :rtype pack: ``str`` :param force_owner_group: Set owner group of the pack directory to the value defined in the config.