Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (26 sloc) 0.814 kb
# chef hook for eycloud env
def do_symlinks(folder)
normal_symlinks = %w(
config/a_b.yml
config/database.yml
config/newrelic.yml
config/lilypad.txt
)
commands = []
commands << normal_symlinks.map do |path|
"rm -rf #{folder}/#{path} && \
ln -sf #{shared_path}/#{path} #{folder}/#{path}"
end
run <<-CMD
cd #{folder} &&
#{commands.join(" && ")}
CMD
end
if %w(app_master app util solo).include?(node[:instance_role])
# gems for app
sudo "cd #{latest_release} && SUDO=1 rake gems:install"
# something is installing 2 version of rack again!, I think it's rack-flash still
sudo 'if gem list | grep rack | grep 1.1.0; then gem uninstall rack --version=1.1.0; else echo "dont need to uninstall rack version=1.1.0"; fi'
# symlinks
do_symlinks(latest_release)
end
Jump to Line
Something went wrong with that request. Please try again.