class PactBroker::Config::RuntimeConfiguration
Public Class Methods
Source
# File lib/pact_broker/config/runtime_configuration.rb, line 101 def self.getter_and_setter_method_names extra_methods = [ :warning_error_classes, :database_configuration, :basic_auth_credentials_provided?, :basic_auth_write_credentials, :basic_auth_read_credentials ] config_attributes + config_attributes.collect{ |k| "#{k}=".to_sym } + extra_methods - [:base_url] end
Public Instance Methods
Source
# File lib/pact_broker/config/runtime_configuration.rb, line 153 def badge_provider_mode= badge_provider_mode super(badge_provider_mode&.to_sym) end
Calls superclass method
Source
# File lib/pact_broker/config/runtime_configuration.rb, line 141 def base_url raise NotImplementedError end
Also aliased as: original_base_url
Source
# File lib/pact_broker/config/runtime_configuration.rb, line 135 def base_url= base_url super(value_to_string_array(base_url, "base_url")) end
Calls superclass method
Source
# File lib/pact_broker/config/runtime_configuration.rb, line 149 def base_urls (super + [*original_base_url]).uniq end
Calls superclass method
Source
# File lib/pact_broker/config/runtime_configuration.rb, line 145 def base_urls= base_urls super(value_to_string_array(base_urls, "base_urls")) end
Calls superclass method
Source
# File lib/pact_broker/config/runtime_configuration.rb, line 131 def custom_log_formatters= custom_log_formatters super(custom_log_formatters&.symbolize_keys) end
Calls superclass method
Source
# File lib/pact_broker/config/runtime_configuration.rb, line 127 def log_format= log_format super(log_format&.to_sym) end
Calls superclass method
Source
# File lib/pact_broker/config/runtime_configuration.rb, line 119 def log_level= log_level super(log_level&.downcase&.to_sym) end
Calls superclass method
Source
# File lib/pact_broker/config/runtime_configuration.rb, line 123 def log_stream= log_stream super(log_stream&.to_sym) end
Calls superclass method
Source
# File lib/pact_broker/config/runtime_configuration.rb, line 185 def main_branch_candidates= main_branch_candidates super(value_to_string_array(main_branch_candidates, "main_branch_candidates")) end
Calls superclass method
Source
# File lib/pact_broker/config/runtime_configuration.rb, line 193 def rack_protection_except= rack_protection_except super(value_to_string_array(rack_protection_except, "rack_protection_except")&.collect(&:to_sym)) end
Calls superclass method
Source
# File lib/pact_broker/config/runtime_configuration.rb, line 189 def rack_protection_use= rack_protection_use super(value_to_string_array(rack_protection_use, "rack_protection_use")&.collect(&:to_sym)) end
Calls superclass method
Source
# File lib/pact_broker/config/runtime_configuration.rb, line 219 def raise_validation_error(msg) raise PactBroker::ConfigurationError, msg end
Source
# File lib/pact_broker/config/runtime_configuration.rb, line 161 def semver_formats= semver_formats super(value_to_string_array(semver_formats, "semver_formats")) end
Calls superclass method
Source
# File lib/pact_broker/config/runtime_configuration.rb, line 223 def set_webhook_attribute_defaults # can't set a default on this, or anyway config blows up when trying to merge the # hash from the env vars into an array/nil. if webhook_certificates.nil? self.webhook_certificates = [] end end
Source
# File lib/pact_broker/config/runtime_configuration.rb, line 208 def validate_logging_attributes! valid_log_streams = [:file, :stdout] unless valid_log_streams.include?(log_stream) raise_validation_error("log_stream must be one of: #{valid_log_streams.join(", ")}") end if log_stream == :file && log_dir.blank? raise_validation_error("Must specify log_dir if log_stream is set to file") end end
Source
# File lib/pact_broker/config/runtime_configuration.rb, line 157 def warning_error_class_names= warning_error_class_names super(value_to_string_array(warning_error_class_names, "warning_error_class_names")) end
Calls superclass method
Source
# File lib/pact_broker/config/runtime_configuration.rb, line 197 def warning_error_classes warning_error_class_names.collect do | class_name | begin Object.const_get(class_name) rescue NameError => e puts("Class #{class_name} couldn't be loaded as a warning error class (#{e.class} - #{e.message}). Ignoring.") nil end end.compact end
Source
# File lib/pact_broker/config/runtime_configuration.rb, line 181 def webhook_host_whitelist= webhook_host_whitelist super(value_to_string_array(webhook_host_whitelist, "webhook_host_whitelist")) end
Calls superclass method
Source
# File lib/pact_broker/config/runtime_configuration.rb, line 173 def webhook_http_code_success= webhook_http_code_success super(value_to_integer_array(webhook_http_code_success, "webhook_http_code_success")) end
Calls superclass method
Source
# File lib/pact_broker/config/runtime_configuration.rb, line 169 def webhook_http_method_whitelist= webhook_http_method_whitelist super(value_to_string_array(webhook_http_method_whitelist, "webhook_http_method_whitelist")) end
Calls superclass method
Source
# File lib/pact_broker/config/runtime_configuration.rb, line 165 def webhook_retry_schedule= webhook_retry_schedule super(value_to_integer_array(webhook_retry_schedule, "webhook_retry_schedule")) end
Calls superclass method
Source
# File lib/pact_broker/config/runtime_configuration.rb, line 177 def webhook_scheme_whitelist= webhook_scheme_whitelist super(value_to_string_array(webhook_scheme_whitelist, "webhook_scheme_whitelist")) end
Calls superclass method