예제 #1
0
파일: config.py 프로젝트: zloeber/aws-aware
def get(element):
    """
    Show a single configuration element.
    """
    if element in CFG.values:
        OUTPUT.configelement(name=element, value=CFG.values[element])
예제 #2
0
파일: config.py 프로젝트: zloeber/aws-aware
def path():
    """
    Display configuration file path
    """
    OUTPUT.configelement(name='Path', value=CFG.config_file)
예제 #3
0
파일: config.py 프로젝트: zloeber/aws-aware
def logpath():
    """
    Output the current configuration log file path
    """
    OUTPUT.configelement(name='Path', value=CFG.get_logpath())
예제 #4
0
파일: config.py 프로젝트: zloeber/aws-aware
def show():
    """
    Show script configuration
    """
    for key, val in CFG.values.items():
        OUTPUT.configelement(name=key, value=val)