stacker/config/__init__.py
def render(raw_config, environment=None):
    """Renders a config, using it as a template with the environment.

    Args:
        raw_config (str): the raw stacker configuration string.
        environment (dict, optional): any environment values that should be
            passed to the config

    Returns:
        str: the stacker configuration populated with any values passed from
            the environment

    """

    t = Template(raw_config)
    buff = StringIO()
    if not environment:
        environment = {}
    try:
        buff.write(t.substitute(environment))
    except KeyError, e:
        raise exceptions.MissingEnvironment(e.args[0])
    except ValueError:
        # Support "invalid" placeholders for lookup placeholders.
        buff.write(t.safe_substitute(environment))

    buff.seek(0)
    return buff.read()
Renders a config, using it as a template with the environment.

    Args:
        raw_config (str): the raw stacker configuration string.
        environment (dict, optional): any environment values that should be
            passed to the config

    Returns:
        str: the stacker configuration populated with any values passed from
            the environment

    
Renders a config, using it as a template with the environment.
Renders a config using it as a template with the environment .
def render(raw_config, environment=None):
    t = Template(raw_config)
    buff = StringIO()
    if not environment:
        environment = {}
    try:
        buff.write(t.substitute(environment))
    except KeyError, e:
        raise exceptions.MissingEnvironment(e.args[0])
    except ValueError:
        buff.write(t.safe_substitute(environment))
    buff.seek(0)
    return buff.read()
def render ( raw_config , environment = None ) : t = Template ( raw_config ) buff = StringIO ( ) if not environment : environment = { } try : buff . write ( t . substitute ( environment ) ) except KeyError , e : raise exceptions . MissingEnvironment ( e . args [ 0 ] ) except ValueError : buff . write ( t . safe_substitute ( environment ) ) buff . seek ( 0 ) return buff . read ( )
Renders a config, using it as a template with the environment.
Renders a config using it as a template with the environment .
"""Renders a config, using it as a template with the environment.

    Args:
        raw_config (str): the raw stacker configuration string.
        environment (dict, optional): any environment values that should be
            passed to the config

    Returns:
        str: the stacker configuration populated with any values passed from
            the environment

    """ # Support "invalid" placeholders for lookup placeholders.
the stacker configuration populated with any values passed from
the environment
the stacker configuration populated with any values passed from the environment
str
raw_config
the raw stacker configuration string.
the raw stacker configuration string .
environment
any environment values that should be
passed to the config
any environment values that should be passed to the config