# Path: revolver/user.py
# def _get_with_abort(username):
# def exists(username):
# def home_directory(username):
# def shell(username):
# 
# Path: revolver/core.py
# VERSION = '0.0.5'
# def put(*args, **kwargs):
# def run(*args, **kwargs):
# def sudo(*args, **kwargs):


from contextlib import contextmanager
from fabric.context_managers import cd, hide, lcd, path, prefix, settings, show
from revolver import user
from revolver.core import env
# -*- coding: utf-8 -*-

from __future__ import absolute_import, division, with_statement





@contextmanager
def sudo(username=None, login=False):
    old_forced = env.sudo_forced
    old_user = env.sudo_user
    old_shell = env.shell

    env.sudo_forced = True
    env.sudo_user = username

    if login:
        with sudo():

# Path: revolver/user.py
# def _get_with_abort(username):
# def exists(username):
# def home_directory(username):
# def shell(username):
# 
# Path: revolver/core.py
# VERSION = '0.0.5'
# def put(*args, **kwargs):
# def run(*args, **kwargs):
# def sudo(*args, **kwargs):


# Path: revolver/contextmanager.py
from contextlib import contextmanager
from fabric.context_managers import cd, hide, lcd, path, prefix, settings, show
from revolver import user
from revolver.core import env

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

from __future__ import absolute_import, division, with_statement





@contextmanager
def sudo(username=None, login=False):
    old_forced = env.sudo_forced
    old_user = env.sudo_user
    old_shell = env.shell

    env.sudo_forced = True
    env.sudo_user = username

    if login:
        with sudo():

            user_shell = user.shell(username)