# Path: revolver/core.py
# def sudo(*args, **kwargs):
#     if env.sudo_user:
#         kwargs['user'] = env.sudo_user
# 
#     return _sudo(*args, **kwargs)
# 
# Path: revolver/command.py

# 
# Path: revolver/package.py
# def is_installed(name):
# def install_ppa(name):


from revolver.core import sudo
from revolver import command, package
# -*- coding: utf-8 -*-

from __future__ import absolute_import, division, with_statement



def install():
    package.ensure(["curl", "git-core", "make"])

    url = "https://raw.github.com/visionmedia/git-extras/master/bin/git-extras"

# Path: revolver/core.py
# def sudo(*args, **kwargs):
#     if env.sudo_user:
#         kwargs['user'] = env.sudo_user
# 
#     return _sudo(*args, **kwargs)
# 
# Path: revolver/command.py

# 
# Path: revolver/package.py
# def is_installed(name):
# def install_ppa(name):


# Path: revolver/tool/git_extras.py
from revolver.core import sudo
from revolver import command, package

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

from __future__ import absolute_import, division, with_statement



def install():
    package.ensure(["curl", "git-core", "make"])

    url = "https://raw.github.com/visionmedia/git-extras/master/bin/git-extras"

    sudo("curl -s %s | INSTALL=y sh" % url)