# Path: revolver/contextmanager.py
# def sudo(username=None, login=False):
# def unpatched_state():
# 
# Path: revolver/file.py
# def temp(mode=None, owner=None, group=None):
# def remove(location, recursive=False, force=True):
# def touch(location, mode=None, owner=None, group=None):
# def copy(source, destination, force=True, mode=None, owner=None, group=None):
# 
# Path: revolver/text.py



from revolver import contextmanager as ctx
from revolver import file, text
# -*- coding: utf-8 -*-

from __future__ import absolute_import, division, with_statement



def ensure(lines):
    with ctx.sudo():

# Path: revolver/contextmanager.py
# def sudo(username=None, login=False):
# def unpatched_state():
# 
# Path: revolver/file.py
# def temp(mode=None, owner=None, group=None):
# def remove(location, recursive=False, force=True):
# def touch(location, mode=None, owner=None, group=None):
# def copy(source, destination, force=True, mode=None, owner=None, group=None):
# 
# Path: revolver/text.py



# Path: revolver/tool/sudoers.py
from revolver import contextmanager as ctx
from revolver import file, text

# -*- coding: utf-8 -*-

from __future__ import absolute_import, division, with_statement



def ensure(lines):
    with ctx.sudo():

        file.update('/etc/sudoers', lambda _: text.ensure_line(_, *lines))