From a0804ae29a4d2be7b3f15015f87f5b274e95c7bd Mon Sep 17 00:00:00 2001 From: Rick Bradley Date: Wed, 2 Apr 2008 20:45:51 -0500 Subject: adding rest_connection_details helper to Indirector::REST -- will need to be overridden to lookup the real connection details --- lib/puppet/indirector/rest.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') 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 -- cgit