Skip to content

Instantly share code, notes, and snippets.

@diegows
Created August 20, 2014 16:53
Show Gist options
  • Save diegows/ae24ba35b73832a864e6 to your computer and use it in GitHub Desktop.
Save diegows/ae24ba35b73832a864e6 to your computer and use it in GitHub Desktop.
dirs = [
"solariat",
"solariat_pool",
"solariat_nlp"
]
for dir in dirs do
project_path = "/opt/tango/#{dir}"
if ::File.exists?(project_path) then
execute "setup-develop-#{dir}" do
command "pip install -e ."
cwd project_path
end
end
end
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/socialoptimizr-base/recipes/git.rb:38:in `block in from_file'
execute("setup-develop-solariat") do
action "run"
retries 0
retry_delay 2
guard_interpreter :default
command "pip install -e ."
backup 5
cwd "/opt/tango/solariat"
returns 0
cookbook_name "socialoptimizr-base"
recipe_name "git"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment