Created
April 10, 2020 22:56
-
-
Save joshcooper/98344933dbd8c44d63acd9183e1481b3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'puppet' | |
module Puppet::Server | |
class HttpClient | |
def get(url, headers: {}, params: {}, options: {}, &block) | |
puts "GET #{url}" | |
end | |
end | |
end | |
Puppet.initialize_settings([], true, true, { 'http' => Puppet::Server::HttpClient.new }) | |
httpclient = Puppet.runtime['http'] | |
httpclient.get(URI("http://www.google.com")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment