Sha256: 06b8d4f5efe2ecab8822258237953e918a141a2dd02d920d258550eef2e14413
Contents?: true
Size: 695 Bytes
Versions: 3
Compression:
Stored size: 695 Bytes
Contents
require 'puppet' require 'puppet/parser/ast/branch' require 'puppet/parser/collector' # An object that collects stored objects from the central cache and returns # them to the current host, yo. class Puppet::Parser::AST class Collection < AST::Branch attr_accessor :type, :query, :form associates_doc # We return an object that does a late-binding evaluation. def evaluate(scope) if self.query str, code = self.query.safeevaluate scope else str = code = nil end newcoll = Puppet::Parser::Collector.new(scope, @type, str, code, self.form) scope.compiler.add_collection(newcoll) newcoll end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
puppet-0.24.9 | lib/puppet/parser/ast/collection.rb |
puppet-0.24.7 | lib/puppet/parser/ast/collection.rb |
puppet-0.24.8 | lib/puppet/parser/ast/collection.rb |