Skip to content

Commit 3786b70

Browse files
committed
Merge pull request mdxp#44 from luntzel/master
Possible fix for not_if block throwing undefined method exists? for Chef::Resource::File:Class
2 parents 68a59d8 + d8742cc commit 3786b70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

recipes/install_from_source.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,5 @@
6464
environment({"PATH" => "/usr/local/bin:/usr/bin:/bin:$PATH"})
6565
command "make install"
6666
cwd "/usr/local/src/node-v#{node['nodejs']['version']}"
67-
not_if {File.exists?("#{node['nodejs']['dir']}/bin/node") && `#{node['nodejs']['dir']}/bin/node --version`.chomp == "v#{node['nodejs']['version']}" }
67+
not_if {::File.exists?("#{node['nodejs']['dir']}/bin/node") && `#{node['nodejs']['dir']}/bin/node --version`.chomp == "v#{node['nodejs']['version']}" }
6868
end

0 commit comments

Comments
 (0)