diff options
author | Luke Kanies <luke@madstop.com> | 2005-07-12 02:53:08 +0000 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2005-07-12 02:53:08 +0000 |
commit | 1f2c866e7fa08c748d4bf75a6997330182d91cf1 (patch) | |
tree | 03334c14b3e0d0a77f5de33ec769fa973d44dc89 /lib/puppet.rb | |
parent | e19ca977aa201297a3c06eca15e434298321454b (diff) | |
download | puppet-1f2c866e7fa08c748d4bf75a6997330182d91cf1.tar.gz puppet-1f2c866e7fa08c748d4bf75a6997330182d91cf1.tar.xz puppet-1f2c866e7fa08c748d4bf75a6997330182d91cf1.zip |
doing some refactoring
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@369 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet.rb')
-rw-r--r-- | lib/puppet.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/puppet.rb b/lib/puppet.rb index 00ec0b1c5..6a49338f3 100644 --- a/lib/puppet.rb +++ b/lib/puppet.rb @@ -5,7 +5,7 @@ require 'singleton' require 'puppet/log' -# XXX see the bottom of the file for further inclusions +# see the bottom of the file for further inclusions #------------------------------------------------------------ # the top-level module @@ -18,14 +18,12 @@ module Puppet # the hash that determines how our system behaves @@config = Hash.new(false) - # handle the different message levels + # define helper messages for each of the message levels Puppet::Log.levels.each { |level| define_method(level,proc { |args| Puppet::Log.create(level,args) }) module_function level - # # default to enabling all notice levels except debug - # @@config[level] = true unless level == :notice } # I keep wanting to use Puppet.error @@ -96,5 +94,5 @@ module Puppet self[:statefile] = File.join(self[:puppetroot],"log/state") end -require 'puppet/storage' require 'puppet/type' +require 'puppet/storage' |