Sha256: 619b5eae78397e1381e1e7e5eb76aa753625daf247449c343e79b07a00ead69b
Contents?: true
Size: 373 Bytes
Versions: 3
Compression:
Stored size: 373 Bytes
Contents
# frozen_string_literal: true # Ruby internal require 'net/http' require 'tempfile' # TLS map module module TLSmap # Generic utilities module Utils def tmpfile(name, url) tmp = Tempfile.new(name) tmp.write(Net::HTTP.get(URI(url))) tmp.close tmp end end # TLS mapping class App include Utils protected :tmpfile end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tls-map-1.3.0 | lib/tls_map/utils.rb |
tls-map-1.2.0 | lib/tls_map/utils.rb |
tls-map-1.1.0 | lib/tls_map/utils.rb |