# Copyright (c) 2020 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true require 'contrast/config/default_value' require 'contrast/config/logger_configuration' module Contrast module Config # Common Configuration settings. Those in this section pertain to the # communication between the Agent & the Service. class ServiceConfiguration < BaseConfiguration DEFAULT_HOST = '127.0.0.1' DEFAULT_PORT = '30555' KEYS = { enable: EMPTY_VALUE, host: Contrast::Config::DefaultValue.new(DEFAULT_HOST), port: Contrast::Config::DefaultValue.new(DEFAULT_PORT), socket: EMPTY_VALUE, logger: Contrast::Config::LoggerConfiguration }.cs__freeze def initialize hsh super(hsh, KEYS) end end end end