lib/opendistro/configuration.rb
# Resets all configuration options to the defaults.
Resets all configuration options to the defaults.
Resets all configuration options to the defaults .
def reset
      self.endpoint       = ENV['OPENDISTRO_API_ENDPOINT']
      self.username       = ENV['OPENDISTRO_API_USER']
      self.password       = ENV['OPENDISTRO_API_PASSWORD']
      self.ca_cert        = ENV['OPENDISTRO_API_CA_CERT_PATH']
      self.httparty       = get_httparty_config(ENV['OPENDISTRO_API_HTTPARTY_OPTIONS'])
      self.user_agent     = DEFAULT_USER_AGENT
      self.verify_ssl     = ENV['OPENDISTRO_API_VERIFY_SSL'] || DEFAULT_VERIFY_SSL
    end
def reset self . endpoint = ENV [ 'OPENDISTRO_API_ENDPOINT' ] self . username = ENV [ 'OPENDISTRO_API_USER' ] self . password = ENV [ 'OPENDISTRO_API_PASSWORD' ] self . ca_cert = ENV [ 'OPENDISTRO_API_CA_CERT_PATH' ] self . httparty = get_httparty_config ( ENV [ 'OPENDISTRO_API_HTTPARTY_OPTIONS' ] ) self . user_agent = DEFAULT_USER_AGENT self . verify_ssl = ENV [ 'OPENDISTRO_API_VERIFY_SSL' ] || DEFAULT_VERIFY_SSL end
Resets all configuration options to the defaults.
Resets all configuration options to the defaults .