2014-10-10 05:00:19 -06:00
|
|
|
from invoke import ctask
|
|
|
|
|
|
|
|
|
|
|
|
@ctask(default=True)
|
|
|
|
def all(ctx):
|
|
|
|
apt_get(ctx)
|
2014-10-10 16:56:34 -06:00
|
|
|
get_sbt(ctx)
|
2014-10-10 05:00:19 -06:00
|
|
|
|
|
|
|
|
2014-10-10 16:56:34 -06:00
|
|
|
linux_pacakges = ('zsh', 'tmux', 'emacs24-nox', 'nmap', 'scala', 'default-jdk',
|
|
|
|
'default-jre', 'python-virtualenv', 'htop', 'netcat', 'wget',
|
|
|
|
'zlib1g-dev', 'libxml2-dev', 'libxslt1-dev', 'python-dev',
|
2014-11-07 06:11:23 -07:00
|
|
|
'libncurses5-dev', 'xbindkeys', 'python3-dev', 'xclip',
|
|
|
|
'silversearcher-ag', 'npm', 'xdotool')
|
2014-10-10 05:00:19 -06:00
|
|
|
@ctask
|
|
|
|
def apt_get(ctx):
|
|
|
|
install_command = 'sudo apt-get -y install'
|
|
|
|
for package in linux_pacakges:
|
|
|
|
ctx.run('{0} {1}'.format(install_command, package), pty=False)
|
2014-10-10 16:56:34 -06:00
|
|
|
|
|
|
|
|
|
|
|
@ctask
|
|
|
|
def get_sbt(ctx):
|
|
|
|
ctx.run('wget http://dl.bintray.com/sbt/debian/sbt-0.13.5.deb '
|
|
|
|
'--output-document=sbt.deb; sudo dpkg -i sbt.deb; '
|
|
|
|
'sudo apt-get update; sudo apt-get install sbt; rm sbt.deb')
|