Skip to content

Instantly share code, notes, and snippets.

@emperorcezar
Created February 5, 2012 21:22
Show Gist options
  • Save emperorcezar/1748001 to your computer and use it in GitHub Desktop.
Save emperorcezar/1748001 to your computer and use it in GitHub Desktop.
Flourish gist
#
# Cookbook Name:: flourish
# Recipe:: default
#
python_virtualenv "#{node[:flourish_dir]}" do
owner "#{node[:flourish_owner]}"
group "#{node[:flourish_group]}"
action :create
end
git "#{node[:flourish_dir]}/flourish" do
repository "git://github.com/emperorcezar/pycon.git"
reference "2012"
action :sync
end
execute "builddeps" do
command "apt-get -y build-dep python-psycopg2"
action :run
end
execute "requirments" do
command "pip install -E #{node[:flourish_dir]} -r #{node[:flourish_dir]}/flourish/pycon_project/requirements/project.txt"
user "vagrant"
environment ({'HOME' => '/home/vagrant'})
action :run
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment