Sha256: f7df63ad08177e19929dab5415e246981e0b111939d4e941e7f307284836a064

Contents?: true

Size: 205 Bytes

Versions: 5

Compression:

Stored size: 205 Bytes

Contents

require 'webrick'
require 'webrick/httpproxy'

proxy = WEBrick::HTTPProxyServer.new Port: (ARGV[0].nil? ? 32768 : ARGV[0])

trap 'INT'  do proxy.shutdown end
trap 'TERM' do proxy.shutdown end

proxy.start

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
puppetfile-resolver-0.6.3 spec/fixtures/proxy.rb
puppetfile-resolver-0.6.2 spec/fixtures/proxy.rb
puppetfile-resolver-0.6.1 spec/fixtures/proxy.rb
puppetfile-resolver-0.6.0 spec/fixtures/proxy.rb
puppetfile-resolver-0.5.0 spec/fixtures/proxy.rb