Permalink
Browse files

COOK-318 use ::File instead of File in recipes

  • Loading branch information...
1 parent 38b5349 commit 070b8a2af5a045dfe25d092a51558e4612532cb2 @jtimberman jtimberman committed Jan 16, 2011
Showing with 5 additions and 5 deletions.
  1. +2 −2 definitions/nginx_site.rb
  2. +2 −2 metadata.json
  3. +1 −1 metadata.rb
@@ -23,13 +23,13 @@
execute "nxensite #{params[:name]}" do
command "/usr/sbin/nxensite #{params[:name]}"
notifies :restart, resources(:service => "nginx")
- not_if do File.symlink?("#{node[:nginx][:dir]}/sites-enabled/#{params[:name]}") end
+ not_if do ::File.symlink?("#{node[:nginx][:dir]}/sites-enabled/#{params[:name]}") end
end
else
execute "nxdissite #{params[:name]}" do
command "/usr/sbin/nxdissite #{params[:name]}"
notifies :restart, resources(:service => "nginx")
- only_if do File.symlink?("#{node[:nginx][:dir]}/sites-enabled/#{params[:name]}") end
+ only_if do ::File.symlink?("#{node[:nginx][:dir]}/sites-enabled/#{params[:name]}") end
end
end
end
View
@@ -234,7 +234,7 @@
]
},
- "version": "0.14.3",
+ "version": "0.14.4",
"groupings": {
},
"long_description": "",
@@ -252,4 +252,4 @@
},
"conflicting": {
}
- }
+ }
View
@@ -2,7 +2,7 @@
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs and configures nginx"
-version "0.14.3"
+version "0.14.4"
recipe "nginx", "Installs nginx package and sets up configuration with Debian apache style with sites-enabled/sites-available"
recipe "nginx::source", "Installs nginx from source and sets up configuration with Debian apache style with sites-enabled/sites-available"

0 comments on commit 070b8a2

Please sign in to comment.