lib/kafo/puppet_module_parser.rb in kafo-0.3.15 vs lib/kafo/puppet_module_parser.rb in kafo-0.3.16
- old
+ new
@@ -36,14 +36,10 @@
# Find object corresponding to class defined in init.pp in list of hostclasses
parser.environment.known_resource_types.hostclasses.each do |ast_objects|
ast_type = ast_objects.last
@object = ast_type if ast_type.file == file
end
- # Find object in list of definitions
- parser.environment.known_resource_types.definitions.each do |ast_objects|
- ast_type = ast_objects.last
- @object = ast_type.last if ast_type.last.file == file
- end
+
parser
end
# TODO - store parsed object type (Puppet::Parser::AST::Variable must be dumped later)
def values