Class: Proxy::HostReports::PluginConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/smart_proxy_host_reports/host_reports.rb

Instance Method Summary collapse

Instance Method Details

#load_classesObject



3
4
5
# File 'lib/smart_proxy_host_reports/host_reports.rb', line 3

def load_classes
  require "smart_proxy_host_reports/spooled_http_client"
end

#load_dependency_injection_wirings(container, _settings) ⇒ Object



7
8
9
10
11
# File 'lib/smart_proxy_host_reports/host_reports.rb', line 7

def load_dependency_injection_wirings(container, _settings)
  container.singleton_dependency :host_reports_spool, -> {
      SpooledHttpClient.instance.initialize_directory
    }
end