summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Wolfe <jes5199@gmail.com>2010-05-12 18:27:12 -0700
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commitcbb28026b2ece55be06530fb2572cdc7b48f2895 (patch)
tree4ea1c39b801094b9176f78ab29e0f964394490a7
parent37a55306aa08e2004103e9a4a2a94bba18ffa61d (diff)
downloadpuppet-cbb28026b2ece55be06530fb2572cdc7b48f2895.tar.gz
puppet-cbb28026b2ece55be06530fb2572cdc7b48f2895.tar.xz
puppet-cbb28026b2ece55be06530fb2572cdc7b48f2895.zip
Code cleanup: remove "self." from setdefaults
defaults.rb was cluttered with unnessesary "self." decorations. I removed them in preparation for a refactor of where settings are handled, but that change has been postponed. Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
-rw-r--r--lib/puppet/defaults.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/puppet/defaults.rb b/lib/puppet/defaults.rb
index da3aaa37e..5ed438da1 100644
--- a/lib/puppet/defaults.rb
+++ b/lib/puppet/defaults.rb
@@ -353,7 +353,7 @@ module Puppet
)
# Define the config default.
- self.setdefaults(self.settings[:name],
+ setdefaults(Puppet.settings[:name],
:config => ["$confdir/puppet.conf",
"The configuration file for #{Puppet[:name]}."],
:pidfile => ["$rundir/$name.pid", "The pid file"],
@@ -368,7 +368,7 @@ module Puppet
}
)
- self.setdefaults(:master,
+ setdefaults(:master,
:user => ["puppet", "The user puppet master should run as."],
:group => ["puppet", "The group puppet master should run as."],
:manifestdir => ["$confdir/manifests",
@@ -594,7 +594,7 @@ module Puppet
)
# Plugin information.
- self.setdefaults(:main,
+ setdefaults(:main,
:plugindest => ["$libdir",
"Where Puppet should store plugins that it pulls down from the central
server."],
@@ -609,7 +609,7 @@ module Puppet
)
# Central fact information.
- self.setdefaults(:main,
+ setdefaults(:main,
:factpath => {:default => "$vardir/lib/facter/:$vardir/facts",
:desc => "Where Puppet should look for facts. Multiple directories should
be colon-separated, like normal PATH variables.",
@@ -629,7 +629,7 @@ module Puppet
"What files to ignore when pulling down facts."]
)
- self.setdefaults(:tagmail,
+ setdefaults(:tagmail,
:tagmap => ["$confdir/tagmail.conf",
"The mapping between reporting tags and email addresses."],
:sendmail => [%x{which sendmail 2>/dev/null}.chomp,
@@ -640,7 +640,7 @@ module Puppet
"The server through which to send email reports."]
)
- self.setdefaults(:rails,
+ setdefaults(:rails,
:dblocation => { :default => "$statedir/clientconfigs.sqlite3",
:mode => 0660,
:owner => "service",