lib/contrast/components/config.rb in contrast-agent-6.7.0 vs lib/contrast/components/config.rb in contrast-agent-6.8.0

- old
+ new

@@ -98,15 +98,10 @@ # @return [Contrast::Components::Protect::Interface] def protect @config.protect end - # @return [Contrast::Components::Service::Interface] - def service - @config.service - end - def valid? @_valid = validate if @_valid.nil? @_valid end @@ -155,17 +150,14 @@ return false end true end - # If the agent is to use the bypass to communicate with TeamServer directly, than it must have the - # configuration values required for that connection. + # The agent must have the configuration values required for the connection to TeamServer. # # @return [boolean] def valid_api? - return true unless bypass - msg = [] msg << API_URL unless api_url msg << API_KEY unless api_key msg << API_SERVICE_KEY unless api_service_key msg << API_USERNAME unless api_username @@ -216,18 +208,9 @@ # that mechanism, so we look it up directly for ourselves. # # @return [String, nil] def api_username api.user_name - end - - # Typically, the following values would be accessed through Contrast::Components::AppContext - # and Contrast::Components::API, but we're too early in the initialization of the Agent to use - # that mechanism, so we look it up directly for ourselves. - # - # @return [String, nil] - def bypass - agent.service.bypass end # Typically, the following values would be accessed through Contrast::Components::AppContext # and Contrast::Components::Logger, but we're too early in the initialization of the Agent to use # that mechanism, so we look it up directly for ourselves.