mdxp/nodejs-cookbook — Issue #3: possible namespace collision with make install
Author: cactus
Created: 2012-02-27 00:52:27+00:00
State: open

If you have a separate `execute "make install" do` block in another cookbook, it will collide with it (very weird).

Something like this fixes it.

~~~
execute "nodejs make install" do
command "make install"
cwd "/usr/local/src/node-v#{node[:nodejs][:version]}"
not_if {File.exists?("#{node[:nodejs][:dir]}/bin/node") && `#{node[:nodejs][:dir]}/bin/node --version`.chomp == "v#{node[:nodejs][:version]}" }
end
~~~