# Path: revolver/command.py

# 
# 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/directory.py
# def temp_local():
# def temp(mode=None, owner=None, group=None):
# def remove(location, recursive=False, force=True):
# def create(path, recursive=False, mode=None, owner=None, group=None):
# 
# Path: revolver/core.py
# def sudo(*args, **kwargs):
#     if env.sudo_user:
#         kwargs['user'] = env.sudo_user
# 
#     return _sudo(*args, **kwargs)
# 
# def run(*args, **kwargs):
#     if not env.sudo_forced:
#         return _run(*args, **kwargs)
# 
#     return sudo(*args, **kwargs)


from revolver import command, package
from revolver import contextmanager as ctx
from revolver import directory as dir
from revolver.core import sudo, run
# -*- coding: utf-8 -*-

from __future__ import absolute_import, division, with_statement


_VERSION = '2.4'
_OPTIONS = ''


def install(version=_VERSION, options=_OPTIONS):
    package.ensure(['git-core', 'build-essential'])
    tmpdir = dir.temp()

    try:
        with ctx.cd(tmpdir):

# Path: revolver/command.py

# 
# 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/directory.py
# def temp_local():
# def temp(mode=None, owner=None, group=None):
# def remove(location, recursive=False, force=True):
# def create(path, recursive=False, mode=None, owner=None, group=None):
# 
# Path: revolver/core.py
# def sudo(*args, **kwargs):
#     if env.sudo_user:
#         kwargs['user'] = env.sudo_user
# 
#     return _sudo(*args, **kwargs)
# 
# def run(*args, **kwargs):
#     if not env.sudo_forced:
#         return _run(*args, **kwargs)
# 
#     return sudo(*args, **kwargs)


# Path: revolver/tool/redis.py
from revolver import command, package
from revolver import contextmanager as ctx
from revolver import directory as dir
from revolver.core import sudo, run

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

from __future__ import absolute_import, division, with_statement


_VERSION = '2.4'
_OPTIONS = ''


def install(version=_VERSION, options=_OPTIONS):
    package.ensure(['git-core', 'build-essential'])
    tmpdir = dir.temp()

    try:
        with ctx.cd(tmpdir):

            run('git clone git://github.com/antirez/redis.git ./ --depth 1')