示例#1
0
def installation():
    core.package("python-software-properties")
    core.package("python-setuptools")
    core.package("python-dev")

    core.package_repository("ppa:fkrull/deadsnakes")
    core.package("python2.7")

    core.remote_file("/tmp/distribute_setup.py",
                     source="http://python-distribute.org/distribute_setup.py",
                     mode=0644)

    # Python 2.7
    sudo("python2.7 /tmp/distribute_setup.py")
    sudo("easy_install-2.7 pip")
    sudo("pip-2.7 install virtualenv")

    # Python 2.6
    sudo("easy_install-2.6 pip")
    sudo("pip-2.6 install virtualenv")
示例#2
0
def installation():
    core.package("python-software-properties")
    core.package("python-setuptools")
    core.package("python-dev")

    core.package_repository("ppa:fkrull/deadsnakes")
    core.package("python2.7")

    core.remote_file("/tmp/distribute_setup.py",
        source="http://python-distribute.org/distribute_setup.py",
        mode=0644)

    # Python 2.7
    sudo("python2.7 /tmp/distribute_setup.py")
    sudo("easy_install-2.7 pip")
    sudo("pip-2.7 install virtualenv")

    # Python 2.6
    sudo("easy_install-2.6 pip")
    sudo("pip-2.6 install virtualenv")
示例#3
0
def test_git_repo():
    core.package("git-core")
    core.git_repository("seamstress",
                        "git://github.com/kyleconroy/seamstress.git")
    with cd("seamstress"):
        assert_in("master", run("git branch"))
示例#4
0
def installation():
    core.package_repository("ppa:chris-lea/node.js")
    core.package("nodejs")
示例#5
0
def installation():
    core.package_repository("ppa:ubuntu-on-rails")
    core.package("ruby1.9.2")
    core.package("rubygems")
    gem("foreman")
示例#6
0
def installation():
    core.package_repository("ppa:nginx/stable")
    core.package("nginx")
    if files.exists("/etc/nginx/sites-enabled/default"):
        sudo("rm /etc/nginx/sites-enabled/default")
示例#7
0
def installation():
    core.package_repository("ppa:pitti/postgresql")
    core.package("postgresql-9.1")
    core.package("libpq-dev")
示例#8
0
def installation():
    core.package_repository("ppa:ubuntu-on-rails")
    core.package("ruby1.9.2")
    core.package("rubygems")
    gem("foreman")
示例#9
0
def test_git_repo():
    core.package("git-core")
    core.git_repository("seamstress", "git://github.com/kyleconroy/seamstress.git")
    with cd("seamstress"):
        assert_in("master", run("git branch"))