summaryrefslogtreecommitdiffstats
path: root/lib/puppet/interface
diff options
context:
space:
mode:
authorLuke Kanies <luke@puppetlabs.com>2011-02-16 00:44:44 -0800
committerLuke Kanies <luke@puppetlabs.com>2011-02-16 00:44:44 -0800
commitb3f903af34c0e27dccb1d043d84c35ea68f44830 (patch)
tree3be902079da77f2dae8846e10080932b1b28cdc3 /lib/puppet/interface
parent782ca8df60c0adc6c264a196292032479d2c2f7c (diff)
downloadpuppet-b3f903af34c0e27dccb1d043d84c35ea68f44830.tar.gz
puppet-b3f903af34c0e27dccb1d043d84c35ea68f44830.tar.xz
puppet-b3f903af34c0e27dccb1d043d84c35ea68f44830.zip
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 <luke@puppetlabs.com>
Diffstat (limited to 'lib/puppet/interface')
-rw-r--r--lib/puppet/interface/file.rb7
-rw-r--r--lib/puppet/interface/file_bucket_file.rb4
2 files changed, 7 insertions, 4 deletions
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