summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRick Bradley <rick@rickbradley.com>2008-04-02 20:45:51 -0500
committerLuke Kanies <luke@madstop.com>2008-04-11 13:11:29 -0500
commita0804ae29a4d2be7b3f15015f87f5b274e95c7bd (patch)
treee6f7fa14bca828487db6a0b707361eb0c1a8bce6 /lib
parentaed13754459e11bcc04a0b14228f5f53b4cd4c4c (diff)
downloadpuppet-a0804ae29a4d2be7b3f15015f87f5b274e95c7bd.tar.gz
puppet-a0804ae29a4d2be7b3f15015f87f5b274e95c7bd.tar.xz
puppet-a0804ae29a4d2be7b3f15015f87f5b274e95c7bd.zip
adding rest_connection_details helper to Indirector::REST -- will need to be overridden to lookup the real connection details
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/indirector/rest.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/puppet/indirector/rest.rb b/lib/puppet/indirector/rest.rb
index 546cbdaf7..e6a7bd6cf 100644
--- a/lib/puppet/indirector/rest.rb
+++ b/lib/puppet/indirector/rest.rb
@@ -3,6 +3,11 @@ require 'uri'
# Access objects via REST
class Puppet::Indirector::REST < Puppet::Indirector::Terminus
+
+ def rest_connection_details
+ { :host => '127.0.0.1', :port => 34343 }
+ end
+
def network_fetch(path)
Net::HTTP.start("127.0.0.1", 34343) {|x| x.get("/#{path}").body }
end