Created
February 5, 2012 21:22
-
-
Save emperorcezar/1748001 to your computer and use it in GitHub Desktop.
Flourish gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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