diff options
| author | Luke Kanies <luke@madstop.com> | 2009-03-13 01:38:47 -0500 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2009-03-20 18:27:07 +1100 |
| commit | 8b13390819f9aec9f344a72b3c0b3b6609f6209d (patch) | |
| tree | 6861f1f6648076cffd0a0b0f30e3d00e83e96667 /lib/puppet/node | |
| parent | edf00dba76b65108b443af8d0636073cb3d9d975 (diff) | |
| download | puppet-8b13390819f9aec9f344a72b3c0b3b6609f6209d.tar.gz puppet-8b13390819f9aec9f344a72b3c0b3b6609f6209d.tar.xz puppet-8b13390819f9aec9f344a72b3c0b3b6609f6209d.zip | |
Adding REST::Handler methods for converting between indirection and uris
This is the first main phase to having a common module for
handling the REST api - this Handler module will be included
by all of the web server REST modules and the Indirector
Request class, so there's a common place that understands
how the URI consists.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet/node')
| -rw-r--r-- | lib/puppet/node/environment.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/puppet/node/environment.rb b/lib/puppet/node/environment.rb index 57dc23e9d..445439aa3 100644 --- a/lib/puppet/node/environment.rb +++ b/lib/puppet/node/environment.rb @@ -61,4 +61,8 @@ class Puppet::Node::Environment end result end + + def to_s + name.to_s + end end |
