From b3f903af34c0e27dccb1d043d84c35ea68f44830 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Wed, 16 Feb 2011 00:44:44 -0800 Subject: Enabling arbitrary interface names Previously the app, indirection, and interface names had to match exactly; now they can be arbitrary by just defining an overriding 'indirection_name' class method on the interface. I also renamed the file_bucket_file classes accordingly. Signed-off-by: Luke Kanies --- lib/puppet/application/data_baseclass.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/puppet/application/data_baseclass.rb') diff --git a/lib/puppet/application/data_baseclass.rb b/lib/puppet/application/data_baseclass.rb index 8da624c60..b7393f96c 100644 --- a/lib/puppet/application/data_baseclass.rb +++ b/lib/puppet/application/data_baseclass.rb @@ -65,7 +65,7 @@ class Puppet::Application::DataBaseclass < Puppet::Application validate - raise "Could not find data type #{type} for application #{self.class.name}" unless @indirection = Puppet::Indirector::Indirection.instance(type) + raise "Could not find data type #{type} for application #{self.class.name}" unless interface.indirection @interface.set_terminus(from) if from end -- cgit