Sha256: d6c89b479ca5fa86a9a138f7dcf57921f5a5751c3e2603643330817b52523404
Contents?: true
Size: 870 Bytes
Versions: 8
Compression:
Stored size: 870 Bytes
Contents
# frozen_string_literal: true module Wazuh module Config extend self ATTRIBUTES = %i[ user_agent ca_file client_cert client_key basic_user basic_password verify_ssl logger endpoint ignore_env_proxy api_version ].freeze attr_accessor(*Config::ATTRIBUTES) def reset self.endpoint = nil self.user_agent = "Wazuh Ruby Client/#{Wazuh::VERSION}" self.ca_file = nil self.client_cert = nil self.client_key = nil self.basic_user = nil self.basic_password = nil self.verify_ssl = true self.logger = nil self.ignore_env_proxy = false self.api_version = 3 end end class << self def configure block_given? ? yield(Config) : Config end def config Config end end end Wazuh::Config.reset
Version data entries
8 entries across 8 versions & 1 rubygems