# Path: revolver/core.py
# VERSION = '0.0.5'
# def put(*args, **kwargs):
# def run(*args, **kwargs):
# def sudo(*args, **kwargs):
# 
# 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


from cuisine import file_attribs as attributes
from cuisine import file_attribs_get as attributes_get
from cuisine import file_ensure as ensure
from cuisine import file_is_file as exists
from cuisine import file_is_link as is_link
from cuisine import file_link as link
from cuisine import file_local_read as read_local
from cuisine import file_read as read
from cuisine import file_update as update
from cuisine import file_write as write
from fabric.contrib.files import append, comment, contains, sed, uncomment
from revolver import core
from revolver.decorator import inject_use_sudo
# -*- coding: utf-8 -*-

from __future__ import absolute_import, division, with_statement



append = inject_use_sudo(append)
comment = inject_use_sudo(comment)
contains = inject_use_sudo(contains)
sed = inject_use_sudo(sed)
uncomment = inject_use_sudo(uncomment)
write = inject_use_sudo(write)


def temp(mode=None, owner=None, group=None):

# Path: revolver/core.py
# VERSION = '0.0.5'
# def put(*args, **kwargs):
# def run(*args, **kwargs):
# def sudo(*args, **kwargs):
# 
# 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/file.py
from cuisine import file_attribs as attributes
from cuisine import file_attribs_get as attributes_get
from cuisine import file_ensure as ensure
from cuisine import file_is_file as exists
from cuisine import file_is_link as is_link
from cuisine import file_link as link
from cuisine import file_local_read as read_local
from cuisine import file_read as read
from cuisine import file_update as update
from cuisine import file_write as write
from fabric.contrib.files import append, comment, contains, sed, uncomment
from revolver import core
from revolver.decorator import inject_use_sudo

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

from __future__ import absolute_import, division, with_statement



append = inject_use_sudo(append)
comment = inject_use_sudo(comment)
contains = inject_use_sudo(contains)
sed = inject_use_sudo(sed)
uncomment = inject_use_sudo(uncomment)
write = inject_use_sudo(write)


def temp(mode=None, owner=None, group=None):

    path = core.run('mktemp').stdout