# Path: revolver/contextmanager.py
# def sudo(username=None, login=False):
# def unpatched_state():
# 
# Path: revolver/decorator.py
# def inject_use_sudo(func):
#     @wraps(func)
#     def inject_wrapper(*args, **kwargs):
#         func_args = func.func_code.co_varnames[:func.func_code.co_argcount]
# 
#         # Fabric
#         if "use_sudo" not in kwargs and "use_sudo" in func_args:
#             kwargs["use_sudo"] = env.sudo_forced
# 
#         # Cuisine
#         if "sudo" not in kwargs and "sudo" in func_args:
#             kwargs["sudo"] = env.sudo_forced
# 
#         return func(*args, **kwargs)
#     return inject_wrapper


import sys
import cuisine
from fabric.api import run as _run
from fabric.api import sudo as _sudo
from fabric.api import put as _put
from fabric.api import local, get, env
from revolver import contextmanager as _ctx
from revolver.decorator import inject_use_sudo
from fabric.contrib import files as _files
# -*- coding: utf-8 -*-

from __future__ import absolute_import, division, with_statement




VERSION = '0.0.5'

env.sudo_forced = False
env.sudo_user = None



# Path: revolver/contextmanager.py
# def sudo(username=None, login=False):
# def unpatched_state():
# 
# Path: revolver/decorator.py
# def inject_use_sudo(func):
#     @wraps(func)
#     def inject_wrapper(*args, **kwargs):
#         func_args = func.func_code.co_varnames[:func.func_code.co_argcount]
# 
#         # Fabric
#         if "use_sudo" not in kwargs and "use_sudo" in func_args:
#             kwargs["use_sudo"] = env.sudo_forced
# 
#         # Cuisine
#         if "sudo" not in kwargs and "sudo" in func_args:
#             kwargs["sudo"] = env.sudo_forced
# 
#         return func(*args, **kwargs)
#     return inject_wrapper


# Path: revolver/core.py
import sys
import cuisine
from fabric.api import run as _run
from fabric.api import sudo as _sudo
from fabric.api import put as _put
from fabric.api import local, get, env
from revolver import contextmanager as _ctx
from revolver.decorator import inject_use_sudo
from fabric.contrib import files as _files

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

from __future__ import absolute_import, division, with_statement




VERSION = '0.0.5'

env.sudo_forced = False
env.sudo_user = None



@inject_use_sudo