def is_push_enabled(value):
    """To ensure that value passed is a boolean value, not string (which in appstack.yml is
    possible)

    Args:
        value(bool or str): value from which covert to bool; should be bool or 'true' or
                            'false' case insensitive
    """
    if isinstance(value, bool):
        return value

    if isinstance(value, str):
        if value.lower() == 'true':
            return True
        elif value.lower() == 'false':
            return False
        else:
            raise Exception("Incorrect string value: " + value + " ! Should be \"true\" or "
                                                                 "\"false\" (case insensitive)")

    raise Exception("Incorrect type: " + type(value) + " Should be bool or str.")