summaryrefslogtreecommitdiffstats
path: root/lib/puppet/indirector/terminus.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-09-21 13:42:39 -0500
committerLuke Kanies <luke@madstop.com>2007-09-21 13:42:39 -0500
commit0a48e5f5bf5885353edc20f020ae27eb682176f7 (patch)
tree8cef0815c83222d2db6f6861282fefecb290f096 /lib/puppet/indirector/terminus.rb
parent7e2ff4b39404ad9b0bdbc40d92c80bcb8c76fcf6 (diff)
downloadpuppet-0a48e5f5bf5885353edc20f020ae27eb682176f7.tar.gz
puppet-0a48e5f5bf5885353edc20f020ae27eb682176f7.tar.xz
puppet-0a48e5f5bf5885353edc20f020ae27eb682176f7.zip
Moving the Puppet::Indirector::Terminus class into its
own file and adding a spec for it.
Diffstat (limited to 'lib/puppet/indirector/terminus.rb')
-rw-r--r--lib/puppet/indirector/terminus.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/puppet/indirector/terminus.rb b/lib/puppet/indirector/terminus.rb
new file mode 100644
index 000000000..d311eb60b
--- /dev/null
+++ b/lib/puppet/indirector/terminus.rb
@@ -0,0 +1,19 @@
+require 'puppet/indirector'
+
+# A simple class that can function as the base class for indirected types.
+class Puppet::Indirector::Terminus
+ require 'puppet/util/docs'
+ extend Puppet::Util::Docs
+
+ class << self
+ attr_accessor :name, :indirection
+ end
+
+ def name
+ self.class.name
+ end
+
+ def indirection
+ self.class.indirection
+ end
+end