How to use the kibitzr.bash.execute_bash function in kibitzr

To help you get started, we’ve selected a few kibitzr examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kibitzr / kibitzr / kibitzr / transformer / plain_text.py View on Github external
def bash_transform(code, content):
    return execute_bash(code, content)
github kibitzr / kibitzr / kibitzr / fetcher / script.py View on Github external
def fetch_by_script(conf):
    code = conf['script']
    try:
        python_code = code['python']
    except (KeyError, TypeError):
        # Not a python script
        pass
    else:
        return fetch_by_python(python_code, conf)
    try:
        # Explicit notation:
        bash_script = code['bash']
    except (KeyError, TypeError):
        bash_script = code
    # Pass something to stdin to disable sanity check:
    return execute_bash(
        bash_script,
        conf.get('name', 'dummy'),
    )
github kibitzr / kibitzr / kibitzr / notifier / bash.py View on Github external
def __call__(self, report):
        execute_bash(self.code, report)