Class: Artifactory::GemImport::Gems::Cleaner

Inherits:
Object
  • Object
show all
Defined in:
lib/artifactory/gem_import/gems/cleaner.rb

Instance Method Summary collapse

Instance Method Details

#call(url, headers) ⇒ Object



5
6
7
8
9
# File 'lib/artifactory/gem_import/gems/cleaner.rb', line 5

def call(url, headers)
  [:ok, cleanup(url, headers)]
rescue Net::HTTPClientException, Net::HTTPFatalError, Net::OpenTimeout, SocketError => err
  [:error, err.message]
end