Commit 121a42ac authored by jtimberman's avatar jtimberman
Browse files

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

parent 5e4d28f9
......@@ -92,5 +92,5 @@
"rsyslog::client": "Sets up a client to log to a remote rsyslog server",
"rsyslog::server": "Sets up an rsyslog server"
},
"version": "0.9.4"
}
\ No newline at end of file
"version": "0.9.5"
}
......@@ -3,7 +3,7 @@ maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs and configures rsyslog"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.9.4"
version "0.9.5"
recipe "rsyslog", "Installs rsyslog"
recipe "rsyslog::client", "Sets up a client to log to a remote rsyslog server"
......
......@@ -38,6 +38,6 @@ unless node[:rsyslog][:server]
file "/etc/rsyslog.d/server.conf" do
action :delete
notifies :reload, resources(:service => "rsyslog"), :delayed
only_if do File.exists?("/etc/rsyslog.d/server.conf") end
only_if do ::File.exists?("/etc/rsyslog.d/server.conf") end
end
end
......@@ -42,7 +42,7 @@ file "/etc/rsyslog.d/remote.conf" do
action :delete
backup false
notifies :reload, resources(:service => "rsyslog"), :delayed
only_if do File.exists?("/etc/rsyslog.d/remote.conf") end
only_if do ::File.exists?("/etc/rsyslog.d/remote.conf") end
end
template "/etc/cron.d/rsyslog_gz" do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment