diff options
author | Luke Kanies <luke@reductivelabs.com> | 2010-01-30 23:58:55 -0600 |
---|---|---|
committer | test branch <puppet-dev@googlegroups.com> | 2010-02-17 06:50:53 -0800 |
commit | aa659f27aaa40507cb1199df048fb85b2c586944 (patch) | |
tree | 4c2347d6306bf8162d206a38eb806ea5039bc899 /lib/puppet/parser/ast/resource.rb | |
parent | 5401a7ca8550ade0443188b505a104ca5726ec80 (diff) | |
download | puppet-aa659f27aaa40507cb1199df048fb85b2c586944.tar.gz puppet-aa659f27aaa40507cb1199df048fb85b2c586944.tar.xz puppet-aa659f27aaa40507cb1199df048fb85b2c586944.zip |
Converging the Resource classes further
I was using 'params' and 'parameters', so
I fixed that and extracted the differences in
how they handle parameters into a stubbable method.
This allowed me to almost entirely remove the subclass's
'initialize' method.
Signed-off-by: Luke Kanies <luke@reductivelabs.com>
Diffstat (limited to 'lib/puppet/parser/ast/resource.rb')
-rw-r--r-- | lib/puppet/parser/ast/resource.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parser/ast/resource.rb b/lib/puppet/parser/ast/resource.rb index c82e0b525..095e097ca 100644 --- a/lib/puppet/parser/ast/resource.rb +++ b/lib/puppet/parser/ast/resource.rb @@ -38,7 +38,7 @@ class Resource < AST::ResourceReference resource_titles.flatten.collect { |resource_title| exceptwrap :type => Puppet::ParseError do resource = Puppet::Parser::Resource.new(type, resource_title, - :params => paramobjects, + :parameters => paramobjects, :file => self.file, :line => self.line, :exported => self.exported, |