def METHOD_NAME(self):
    """Save current configuration to file as YAML
    Uses ``.filename`` for target location
    """
    if self.filename is False:
        return
    try:
        os.makedirs(os.path.dirname(self.filename))
    except (OSError, IOError):
        pass
    with open(self.filename, "w") as f:
        yaml.dump(dict(self), f)