summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-10-04 17:07:47 -0500
committerLuke Kanies <luke@madstop.com>2007-10-04 17:07:47 -0500
commit1fa591287a4ab921cec628aa0c5bf58d61fbdef2 (patch)
treef6321fde5b3256b6d0752b91af971d08bdc0ed7f /lib
parent95b2b93290f619c20a1c2dca11dd9909477857f8 (diff)
downloadpuppet-1fa591287a4ab921cec628aa0c5bf58d61fbdef2.tar.gz
puppet-1fa591287a4ab921cec628aa0c5bf58d61fbdef2.tar.xz
puppet-1fa591287a4ab921cec628aa0c5bf58d61fbdef2.zip
Adding the integration tests to the Rakefile for spec,
fixing the integration tests, and extending the Classmethods for the indirector so that indirected classes can set the terminus class and cache class.
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/indirector.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/puppet/indirector.rb b/lib/puppet/indirector.rb
index 6ff2de1b4..7821e809c 100644
--- a/lib/puppet/indirector.rb
+++ b/lib/puppet/indirector.rb
@@ -28,6 +28,14 @@ module Puppet::Indirector
module ClassMethods
attr_reader :indirection
+
+ def cache_class=(klass)
+ indirection.cache_class = klass
+ end
+
+ def terminus_class=(klass)
+ indirection.terminus_class = klass
+ end
def find(*args)
indirection.find(*args)