From 1fa591287a4ab921cec628aa0c5bf58d61fbdef2 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Thu, 4 Oct 2007 17:07:47 -0500 Subject: 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. --- lib/puppet/indirector.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/puppet') 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) -- cgit