diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-10-07 20:52:19 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-10-07 20:52:19 +0000 |
| commit | 34f8337c68ff6f4b8ff57e604bae77529eb0d16e (patch) | |
| tree | d7188575a0ec20c4082990afbf6b907146da364e /lib/puppet/util | |
| parent | 5b6ee8c823a78f26cd1a1ad957da3d234910b9c2 (diff) | |
Refactoring reporting. Reports are now modules instead of simple methods.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1746 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/util')
| -rw-r--r-- | lib/puppet/util/classgen.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/puppet/util/classgen.rb b/lib/puppet/util/classgen.rb index dabbda3d1..8fa2a34cf 100644 --- a/lib/puppet/util/classgen.rb +++ b/lib/puppet/util/classgen.rb @@ -154,6 +154,15 @@ module Puppet::Util::ClassGen end end + [:include, :extend].each do |method| + if set = options[method] + set = [set] unless set.is_a?(Array) + set.each do |mod| + klass.send(method, mod) + end + end + end + if klass.respond_to? :preinit klass.preinit end |
