Skip to content

Instantly share code, notes, and snippets.

@binford2k
Created October 25, 2013 20:04
Show Gist options
  • Save binford2k/7161009 to your computer and use it in GitHub Desktop.
Save binford2k/7161009 to your computer and use it in GitHub Desktop.
when_invoked do |path, options|
require 'puppet/network/http_pool'
connection = Puppet::Network::HttpPool.http_instance(Puppet[:server], Puppet[:masterport])
connection.request_get(path, {"Accept" => options[:accept]}).body
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment