Class: PuppetLibrary::Http::HttpClient

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet_library/http/http_client.rb

Instance Method Summary collapse

Instance Method Details

#download(url) ⇒ Object



26
27
28
# File 'lib/puppet_library/http/http_client.rb', line 26

def download(url)
    open_uri(url)
end

#get(url) ⇒ Object



22
23
24
# File 'lib/puppet_library/http/http_client.rb', line 22

def get(url)
    open_uri(url).read
end