Ejemplo n.º 1
0
Archivo: venv.py Proyecto: eepp/vlttng
    def _create_build_script(self, instructions, name, exports, src_path):
        from vlttng.build_template import build_template as tmpl

        build_lines = ''

        if instructions.build_lines is not None:
            build_lines = '\n'.join(instructions.build_lines)

        build = tmpl.format(name=name, src_path=_sq(src_path),
                            build_lines=build_lines, exports=exports)
        self._create_executable_script('build-{}'.format(name), build)
Ejemplo n.º 2
0
Archivo: venv.py Proyecto: eepp/vlttng
    def _create_install_script(self, instructions, name, exports, src_path):
        from vlttng.install_template import install_template as tmpl

        install_lines = ''

        if instructions.install_lines is not None:
            install_lines = '\n'.join(instructions.install_lines)

        install = tmpl.format(name=name, src_path=_sq(src_path),
                              install_lines=install_lines, exports=exports)
        self._create_executable_script('install-{}'.format(name), install)
Ejemplo n.º 3
0
Archivo: venv.py Proyecto: eepp/vlttng
    def _create_conf_script(self, instructions, name, exports, src_path):
        from vlttng.conf_template import conf_template as tmpl

        conf_lines = ''

        if instructions.conf_lines is not None:
            conf_lines = '\n'.join(instructions.conf_lines)

        conf = tmpl.format(name=name, src_path=_sq(src_path),
                           conf_lines=conf_lines, exports=exports)
        self._create_executable_script('conf-{}'.format(name), conf)
Ejemplo n.º 4
0
    def _create_install_script(self, instructions, name, exports, src_path):
        from vlttng.install_template import install_template as tmpl

        install_lines = ''

        if instructions.install_lines is not None:
            install_lines = '\n'.join(instructions.install_lines)

        install = tmpl.format(name=name, src_path=_sq(src_path),
                              install_lines=install_lines, exports=exports)
        self._create_executable_script('install-{}'.format(name), install)
Ejemplo n.º 5
0
    def _create_build_script(self, instructions, name, exports, src_path):
        from vlttng.build_template import build_template as tmpl

        build_lines = ''

        if instructions.build_lines is not None:
            build_lines = '\n'.join(instructions.build_lines)

        build = tmpl.format(name=name, src_path=_sq(src_path),
                            build_lines=build_lines, exports=exports)
        self._create_executable_script('build-{}'.format(name), build)
Ejemplo n.º 6
0
    def _create_conf_script(self, instructions, name, exports, src_path):
        from vlttng.conf_template import conf_template as tmpl

        conf_lines = ''

        if instructions.conf_lines is not None:
            conf_lines = '\n'.join(instructions.conf_lines)

        conf = tmpl.format(name=name, src_path=_sq(src_path),
                           conf_lines=conf_lines, exports=exports)
        self._create_executable_script('conf-{}'.format(name), conf)
Ejemplo n.º 7
0
Archivo: venv.py Proyecto: eepp/vlttng
    def _create_update_script(self, instructions, name, exports, src_path):
        from vlttng.update_template import update_template as tmpl

        gitref = instructions.project.source.checkout
        uninstall_lines = ''

        if instructions.uninstall_lines is not None:
            uninstall_lines = '\n'.join(instructions.uninstall_lines)

        update = tmpl.format(name=name, src_path=_sq(src_path),
                             uninstall_lines=uninstall_lines, gitref=gitref,
                             exports=exports)
        self._create_executable_script('update-{}'.format(name), update)
Ejemplo n.º 8
0
    def _create_update_script(self, instructions, name, exports, src_path):
        from vlttng.update_template import update_template as tmpl

        gitref = instructions.project.source.checkout
        uninstall_lines = ''

        if instructions.uninstall_lines is not None:
            uninstall_lines = '\n'.join(instructions.uninstall_lines)

        update = tmpl.format(name=name, src_path=_sq(src_path),
                             uninstall_lines=uninstall_lines, gitref=gitref,
                             exports=exports)
        self._create_executable_script('update-{}'.format(name), update)