cookbooks/site/ruby-shadow/recipes/default.rb in solokit-0.1.11 vs cookbooks/site/ruby-shadow/recipes/default.rb in solokit-0.1.12
- old
+ new
@@ -1,17 +1,17 @@
site_ruby = "/usr/local/lib/ruby/site_ruby/1.8"
remote_directory "/usr/local/src/shadow-1.4.1" do
source 'shadow-1.4.1'
- not_if { File.exists?(site_ruby, "#{node[:languages][:ruby][:platform]}/shadow.so")) }
+ not_if { File.exists?(File.join(site_ruby, "#{node[:languages][:ruby][:platform]}/shadow.so")) }
end
bash "install ruby shadow library" do
user "root"
cwd "/usr/local/src"
code <<-EOH
cd shadow-1.4.1
ruby extconf.rb
make install
EOH
- not_if { File.exists?(site_ruby, "/#{node[:languages][:ruby][:platform]}/shadow.so")) }
+ not_if { File.exists?(File.join(site_ruby, "/#{node[:languages][:ruby][:platform]}/shadow.so")) }
end