(app_name)
return rv
Lookup the bash command-line options for a bash task
    If they don't exist, return empty string
Lookup the bash command-line options for a bash task
    If they don't exist, return empty string
Lookup the bash command - line options for a bash task If they don t exist return empty string
def get_bash_cmd(app_name):
    """Lookup the bash command-line options for a bash task
    If they don't exist, return empty string"""
    dg = api.get_tasks_config()
    meta = dg[app_name]
    job_type = meta.get('job_type', 'bash')
    try:
        assert job_type == 'bash'
    except AssertionError:
        log.error(
            "App is not a bash job", extra=dict(
                app_name=app_name, job_type=job_type))
    rv = meta.get('bash_cmd', '')
    if not isinstance(rv, six.string_types):
        log_and_raise(
            "App config for bash plugin is misconfigured:"
            " bash_cmd is not a string", dict(app_name=app_name))
    return rv
def get_bash_cmd ( app_name ) : dg = api . get_tasks_config ( ) meta = dg [ app_name ] job_type = meta . get ( 'job_type' , 'bash' ) try : assert job_type == 'bash' except AssertionError : log . error ( "App is not a bash job" , extra = dict ( app_name = app_name , job_type = job_type ) ) rv = meta . get ( 'bash_cmd' , '' ) if not isinstance ( rv , six . string_types ) : log_and_raise ( "App config for bash plugin is misconfigured:" " bash_cmd is not a string" , dict ( app_name = app_name ) ) return rv