summaryrefslogtreecommitdiffstats
path: root/lib/puppet/reports
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-09-22 17:54:46 -0500
committerLuke Kanies <luke@madstop.com>2007-09-22 17:54:46 -0500
commit3a18348fdbea39f56857b03c8f531bd5a2a8105d (patch)
treef305e24aee683167f45f962e5fcdfe524d59d93e /lib/puppet/reports
parente552c83b2875dab60a5508bfae352e7aa9235746 (diff)
Renaming the 'Puppet::Util::Config' class to
'Puppet::Util::Settings'. This is to clear up confusion caused by the fact that we now have a 'Configuration' class to model host configurations, or any set of resources as a "configuration".
Diffstat (limited to 'lib/puppet/reports')
-rw-r--r--lib/puppet/reports/rrdgraph.rb2
-rw-r--r--lib/puppet/reports/store.rb4
-rw-r--r--lib/puppet/reports/tagmail.rb2
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/puppet/reports/rrdgraph.rb b/lib/puppet/reports/rrdgraph.rb
index 7209a8401..1516d331a 100644
--- a/lib/puppet/reports/rrdgraph.rb
+++ b/lib/puppet/reports/rrdgraph.rb
@@ -102,7 +102,7 @@ Puppet::Network::Handler.report.newreport(:rrdgraph) do
unless File.directory?(hostdir) and FileTest.writable?(hostdir)
# Some hackishness to create the dir with all of the right modes and ownership
- config = Puppet::Util::Config.new
+ config = Puppet::Util::Settings.new
config.setdefaults(:reports, :hostdir => {:default => hostdir, :owner => Puppet[:user], :mode => 0755, :group => Puppet[:group], :desc => "eh"})
# This creates the dir.
diff --git a/lib/puppet/reports/store.rb b/lib/puppet/reports/store.rb
index d51f50372..389de4e6e 100644
--- a/lib/puppet/reports/store.rb
+++ b/lib/puppet/reports/store.rb
@@ -1,7 +1,7 @@
require 'puppet'
Puppet::Network::Handler.report.newreport(:store, :useyaml => true) do
- Puppet.config.use(:reporting)
+ Puppet.settings.use(:reporting)
desc "Store the yaml report on disk. Each host sends its report as a YAML dump
and this just stores the file on disk, in the ``reportdir`` directory.
@@ -11,7 +11,7 @@ Puppet::Network::Handler.report.newreport(:store, :useyaml => true) do
default report)."
def mkclientdir(client, dir)
- config = Puppet::Util::Config.new
+ config = Puppet::Util::Settings.new
config.setdefaults("reportclient-#{client}",
"client-#{client}-dir" => { :default => dir,
:mode => 0750,
diff --git a/lib/puppet/reports/tagmail.rb b/lib/puppet/reports/tagmail.rb
index b62a6d2d3..8c65524ee 100644
--- a/lib/puppet/reports/tagmail.rb
+++ b/lib/puppet/reports/tagmail.rb
@@ -31,7 +31,7 @@ Puppet::Network::Handler.report.newreport(:tagmail) do
"
- Puppet.config.use(:tagmail)
+ Puppet.settings.use(:tagmail)
# Find all matching messages.
def match(taglists)