Skip to content

Commit

Permalink
COOK-318 use ::File instead of File in recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimberman committed Jan 16, 2011
1 parent 38b5349 commit 070b8a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions definitions/nginx_site.rb
Expand Up @@ -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
4 changes: 2 additions & 2 deletions metadata.json
Expand Up @@ -234,7 +234,7 @@

]
},
"version": "0.14.3",
"version": "0.14.4",
"groupings": {
},
"long_description": "",
Expand All @@ -252,4 +252,4 @@
},
"conflicting": {
}
}
}
2 changes: 1 addition & 1 deletion metadata.rb
Expand Up @@ -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"
Expand Down

0 comments on commit 070b8a2

Please sign in to comment.