diff options
author | Luke Kanies <luke@madstop.com> | 2007-10-18 14:36:38 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2007-10-18 14:36:38 -0500 |
commit | 33d7dc0141328dc9ae042c992404943ebaf78d0d (patch) | |
tree | 87be540c80bbaa90fd5a14789278e46188ef0243 /lib/puppet/indirector/file_content | |
parent | 815618568d88daf373fb057333c962e31a4b748b (diff) | |
download | puppet-33d7dc0141328dc9ae042c992404943ebaf78d0d.tar.gz puppet-33d7dc0141328dc9ae042c992404943ebaf78d0d.tar.xz puppet-33d7dc0141328dc9ae042c992404943ebaf78d0d.zip |
I'm working on making file serving work in the indirector now, so I
added two abilities to the indirections: Models can specify a module to
extend the indirection instance with, and indirections will use a
:select_terminus method, if it's available, to select the terminus to
use for finding. (It's currently only used for finding, not destroying
or saving.)
The upshot is that a model can have a module that handles terminus
selection for it, and then extend its indirection with that module.
This will allow me to use the local terminus when the protocol is 'file'
and the REST terminus when the protocol is 'puppet'. It should also
open the door for other protocols if they become available.
Diffstat (limited to 'lib/puppet/indirector/file_content')
-rw-r--r-- | lib/puppet/indirector/file_content/file.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/puppet/indirector/file_content/file.rb b/lib/puppet/indirector/file_content/file.rb index 2723142af..bb9dc6998 100644 --- a/lib/puppet/indirector/file_content/file.rb +++ b/lib/puppet/indirector/file_content/file.rb @@ -8,4 +8,7 @@ require 'puppet/indirector/file' class Puppet::Indirector::FileContent::File < Puppet::Indirector::File desc "Retrieve file contents from disk." + + def find(path) + end end |