Sha256: 3f4c921797cea3973351cf6616735c7d5f355a458d765f6c140643184735eb9c

Contents?: true

Size: 290 Bytes

Versions: 8

Compression:

Stored size: 290 Bytes

Contents

class Puppet::HTTP::Service
  attr_reader :url

  def initialize(client, url)
    @client = client
    @url = url
  end

  def with_base_url(path)
    u = @url.dup
    u.path += path
    u
  end

  def connect(ssl_context: nil)
    @client.connect(@url, ssl_context: ssl_context)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
puppet-6.11.1 lib/puppet/http/service.rb
puppet-6.11.1-x86-mingw32 lib/puppet/http/service.rb
puppet-6.11.1-x64-mingw32 lib/puppet/http/service.rb
puppet-6.11.1-universal-darwin lib/puppet/http/service.rb
puppet-6.11.0 lib/puppet/http/service.rb
puppet-6.11.0-x86-mingw32 lib/puppet/http/service.rb
puppet-6.11.0-x64-mingw32 lib/puppet/http/service.rb
puppet-6.11.0-universal-darwin lib/puppet/http/service.rb