Sha256: 4c0c383a7a3ec100dfdc0300b48c85df0f40cbdc03ec733aa1f019b9d881cdbc
Contents?: true
Size: 491 Bytes
Versions: 4
Compression:
Stored size: 491 Bytes
Contents
module Artifactory module GemImport module Gems class Cleaner def call(url, headers) [:ok, cleanup(url, headers)] rescue Net::HTTPClientException, Net::HTTPFatalError, Net::OpenTimeout, SocketError => err [:error, err.message] end private def cleanup(url, headers) response = HTTParty.delete url, headers: headers response.success? ? url : response.error! end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems