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/interface/file.rb | 7 +++++++ lib/puppet/interface/file_bucket_file.rb | 4 ---- 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 lib/puppet/interface/file.rb delete mode 100644 lib/puppet/interface/file_bucket_file.rb (limited to 'lib/puppet/interface') diff --git a/lib/puppet/interface/file.rb b/lib/puppet/interface/file.rb new file mode 100644 index 000000000..53c476d7c --- /dev/null +++ b/lib/puppet/interface/file.rb @@ -0,0 +1,7 @@ +require 'puppet/interface' + +class Puppet::Interface::File < Puppet::Interface + def self.indirection_name + :file_bucket_file + end +end diff --git a/lib/puppet/interface/file_bucket_file.rb b/lib/puppet/interface/file_bucket_file.rb deleted file mode 100644 index f34ebc4c4..000000000 --- a/lib/puppet/interface/file_bucket_file.rb +++ /dev/null @@ -1,4 +0,0 @@ -require 'puppet/interface' - -class Puppet::Interface::File_bucket_file < Puppet::Interface -end -- cgit