diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-12-23 04:49:56 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-12-23 04:49:56 +0000 |
commit | 9bb5c50d0b30b4dfb82b6b705dfcbf0e126a9d61 (patch) | |
tree | e41fbeb90e4050ea2af6d37e7b443cf9f84be162 /lib/puppet/event.rb | |
parent | be711d357857f5e6d4a28a22bd60dd89e9e136c0 (diff) | |
download | puppet-9bb5c50d0b30b4dfb82b6b705dfcbf0e126a9d61.tar.gz puppet-9bb5c50d0b30b4dfb82b6b705dfcbf0e126a9d61.tar.xz puppet-9bb5c50d0b30b4dfb82b6b705dfcbf0e126a9d61.zip |
Not downcasing facts any longer, closing #210 (although not using the patch from mpalmer, since I had not noticed the patch was there). Also, making all nodes, classes, and definitions case insensitive, closing #344. Finally, I added case insensitivity to the language in general, which should preserve backwards compatibility and probably makes the most sense in the long run anyway.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1964 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/event.rb')
-rw-r--r-- | lib/puppet/event.rb | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/lib/puppet/event.rb b/lib/puppet/event.rb index 98ea92c9d..16e76bf50 100644 --- a/lib/puppet/event.rb +++ b/lib/puppet/event.rb @@ -1,5 +1,6 @@ require 'puppet' -require 'puppet/type' +require 'puppet/util/methodhelper' +require 'puppet/util/errors' module Puppet # events are transient packets of information; they result in one or more (or none) @@ -7,19 +8,16 @@ module Puppet # eventually, these will be passed on to some central event system class Event include Puppet + include Puppet::Util::MethodHelper + include Puppet::Util::Errors + attr_accessor :event, :source, :transaction @@events = [] def initialize(args) - unless args.include?(:event) and args.include?(:source) - raise Puppet::DevError, "Event.new called incorrectly" - end - - @change = args[:change] - @event = args[:event] - @source = args[:source] - @transaction = args[:transaction] + set_options symbolize_options(args) + requiredopts(:event, :source) end def to_s |