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")
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"))
def installation(): core.package_repository("ppa:chris-lea/node.js") core.package("nodejs")
def installation(): core.package_repository("ppa:ubuntu-on-rails") core.package("ruby1.9.2") core.package("rubygems") gem("foreman")
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")
def installation(): core.package_repository("ppa:pitti/postgresql") core.package("postgresql-9.1") core.package("libpq-dev")