diff options
| author | Luke Kanies <luke@madstop.com> | 2008-02-23 19:06:29 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-02-23 19:06:29 -0500 |
| commit | ff9705914570158d1bad3073728a2e94ca4a0060 (patch) | |
| tree | f005f1ba130f66913f35a80c0f7d1eccd9f0bab5 /lib/puppet/node | |
| parent | 9b6e5013e387998936979d7a372acde3af65cf61 (diff) | |
| download | puppet-ff9705914570158d1bad3073728a2e94ca4a0060.tar.gz puppet-ff9705914570158d1bad3073728a2e94ca4a0060.tar.xz puppet-ff9705914570158d1bad3073728a2e94ca4a0060.zip | |
Somewhat refactored fileserving so that it no longer caches
any objects, nor does it use Puppet's RAL resources. In the
process, I fixed #894 (you can now copy links) and refactored
other classes as necessary. Mostly it was fixing tests.
This is a squashed commit of a temporary branch, fwiw,
and it also includes any fixes to the tests that were
necessary to get all tests passing again.
Diffstat (limited to 'lib/puppet/node')
| -rw-r--r-- | lib/puppet/node/catalog.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/puppet/node/catalog.rb b/lib/puppet/node/catalog.rb index ee4cedd4b..d680de9a0 100644 --- a/lib/puppet/node/catalog.rb +++ b/lib/puppet/node/catalog.rb @@ -1,4 +1,6 @@ require 'puppet/indirector' +require 'puppet/pgraph' +require 'puppet/transaction' require 'puppet/util/tagging' @@ -69,7 +71,10 @@ class Puppet::Node::Catalog < Puppet::PGraph @resource_table[ref] = resource # If the name and title differ, set up an alias - self.alias(resource, resource.name) if resource.respond_to?(:name) and resource.respond_to?(:title) and resource.name != resource.title + #self.alias(resource, resource.name) if resource.respond_to?(:name) and resource.respond_to?(:title) and resource.name != resource.title + if resource.respond_to?(:name) and resource.respond_to?(:title) and resource.name != resource.title + self.alias(resource, resource.name) if resource.class.isomorphic? + end resource.catalog = self if resource.respond_to?(:catalog=) and ! is_relationship_graph @@ -499,7 +504,7 @@ class Puppet::Node::Catalog < Puppet::PGraph map.clear - result.add_class *self.classes + result.add_class(*self.classes) result.tag(*self.tags) return result |
