# Path: revolver/command.py

# 
# 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/package.py
# def is_installed(name):
# def install_ppa(name):
# 
# Path: revolver/contextmanager.py
# def sudo(username=None, login=False):
# def unpatched_state():


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

from __future__ import absolute_import, division, with_statement



def install():
    package.install('stunnel')

    with ctx.sudo():

# Path: revolver/command.py

# 
# 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/package.py
# def is_installed(name):
# def install_ppa(name):
# 
# Path: revolver/contextmanager.py
# def sudo(username=None, login=False):
# def unpatched_state():


# Path: revolver/tool/stunnel.py
from revolver import command, file, package
from revolver import contextmanager as ctx

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

from __future__ import absolute_import, division, with_statement



def install():
    package.install('stunnel')

    with ctx.sudo():

        file.sed('/etc/default/stunnel4', 'ENABLED=0', 'ENABLED=1')