示例#1
0
    def _set_default_version(self, manifest_file):
        compile_exts = CompileExtensions(self._ctx['BP_DIR'])

        exit_code, output = compile_exts.default_version_for(manifest_file, "newrelic")
        if exit_code == 1:
            self._log.error("Error detecting NewRelic default version: %s", output)
            raise RuntimeError("Error detecting NewRelic default version")

        self._log.info("Using NewRelic default version: %s", output)
        self._ctx['NEWRELIC_VERSION'] = output
示例#2
0
    def _set_default_version(self, manifest_file):
        compile_exts = CompileExtensions(self._ctx['BP_DIR'])

        exit_code, output = compile_exts.default_version_for(
            manifest_file, "newrelic")
        if exit_code == 1:
            self._log.error("Error detecting NewRelic default version: %s",
                            output)
            raise RuntimeError("Error detecting NewRelic default version")

        self._log.info("Using NewRelic default version: %s", output)
        self._ctx['NEWRELIC_VERSION'] = output
    def _defaults(self):
        self._log.info("Loading defaults info")

        manifest_file_path = os.path.join(self._ctx["BP_DIR"], "manifest.yml")

        compile_ext = CompileExtensions(self._ctx["BP_DIR"])
        _, default_version = compile_ext.default_version_for(manifest_file_path=manifest_file_path, dependency="CAAPM")

        return {
            'CA_APM_DOWNLOAD_HOST': 'ca.bintray.com/apm-agents',
            'CA_APM_DOWNLOAD_VERSION': '20.11.0',
            'CA_APM_PHP_PACKAGE': 'CA-APM-PHPAgent-{CA_APM_DOWNLOAD_VERSION}_linux.tar.gz',
            'CAAPM_DOWNLOAD_URL': 'https://{CA_APM_DOWNLOAD_HOST}/{CA_APM_PHP_PACKAGE}'
        }
示例#4
0
    def _defaults(self):
        manifest_file_path = os.path.join(self._ctx["BP_DIR"], "manifest.yml")

        compile_ext = CompileExtensions(self._ctx["BP_DIR"])
        _, default_version = compile_ext.default_version_for(manifest_file_path=manifest_file_path, dependency="composer")

        return {
            'COMPOSER_VERSION': default_version,
            'COMPOSER_PACKAGE': 'composer.phar',
            'COMPOSER_DOWNLOAD_URL': '/composer/'
                                     '{COMPOSER_VERSION}/{COMPOSER_PACKAGE}',
            'COMPOSER_INSTALL_OPTIONS': ['--no-interaction', '--no-dev'],
            'COMPOSER_VENDOR_DIR': '{BUILD_DIR}/{LIBDIR}/vendor',
            'COMPOSER_BIN_DIR': '{BUILD_DIR}/php/bin',
            'COMPOSER_CACHE_DIR': '{CACHE_DIR}/composer'
        }
示例#5
0
    def _defaults(self):
        manifest_file_path = os.path.join(self._ctx["BP_DIR"], "manifest.yml")

        compile_ext = CompileExtensions(self._ctx["BP_DIR"])
        _, default_version = compile_ext.default_version_for(
            manifest_file_path=manifest_file_path, dependency="composer")

        return {
            'COMPOSER_VERSION': default_version,
            'COMPOSER_PACKAGE': 'composer.phar',
            'COMPOSER_DOWNLOAD_URL': '/composer/'
            '{COMPOSER_VERSION}/{COMPOSER_PACKAGE}',
            'COMPOSER_INSTALL_OPTIONS': ['--no-interaction', '--no-dev'],
            'COMPOSER_VENDOR_DIR': '{BUILD_DIR}/{LIBDIR}/vendor',
            'COMPOSER_BIN_DIR': '{BUILD_DIR}/php/bin',
            'COMPOSER_CACHE_DIR': '{CACHE_DIR}/composer'
        }