Skip to content

Instantly share code, notes, and snippets.

@benjaminws
Created January 16, 2013 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benjaminws/4550895 to your computer and use it in GitHub Desktop.
Save benjaminws/4550895 to your computer and use it in GitHub Desktop.
For @dstanek
# Assumes /home/me/myapp is a virtualenv...
script "Install Requirements" do
interpreter "bash"
user "me"
group "me"
code <<-EOC
/home/me/myapp/bin/pip install -r /home/me/myapp/requirements.txt
EOC
not_if "/home/me/myapp/bin/pip freeze | grep 'an_dependency' > /dev/null"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment