Class: Gitlab::Experiment::Configuration
- Inherits:
-
Object
- Object
- Gitlab::Experiment::Configuration
- Includes:
- Singleton
- Defined in:
- lib/gitlab/experiment/configuration.rb
Class Attribute Summary collapse
-
.base_class ⇒ Object
Returns the value of attribute base_class.
-
.cache ⇒ Object
Returns the value of attribute cache.
-
.context_key_bit_length ⇒ Object
Returns the value of attribute context_key_bit_length.
-
.context_key_secret ⇒ Object
Returns the value of attribute context_key_secret.
-
.cookie_domain ⇒ Object
Returns the value of attribute cookie_domain.
-
.cookie_name ⇒ Object
Returns the value of attribute cookie_name.
-
.default_rollout ⇒ Object
Returns the value of attribute default_rollout.
-
.logger ⇒ Object
Returns the value of attribute logger.
-
.mount_at ⇒ Object
Returns the value of attribute mount_at.
-
.name_prefix ⇒ Object
Returns the value of attribute name_prefix.
-
.nested_behavior ⇒ Object
Returns the value of attribute nested_behavior.
-
.publishing_behavior ⇒ Object
Returns the value of attribute publishing_behavior.
-
.redirect_url_validator ⇒ Object
Returns the value of attribute redirect_url_validator.
-
.strict_registration ⇒ Object
Returns the value of attribute strict_registration.
-
.tracking_behavior ⇒ Object
Returns the value of attribute tracking_behavior.
Class Method Summary collapse
-
.deprecated(*args, version:, stack: 0) ⇒ Object
Internal warning helpers.
Class Attribute Details
.base_class ⇒ Object
Returns the value of attribute base_class.
172 173 174 |
# File 'lib/gitlab/experiment/configuration.rb', line 172 def base_class @base_class end |
.cache ⇒ Object
Returns the value of attribute cache.
172 173 174 |
# File 'lib/gitlab/experiment/configuration.rb', line 172 def cache @cache end |
.context_key_bit_length ⇒ Object
Returns the value of attribute context_key_bit_length.
172 173 174 |
# File 'lib/gitlab/experiment/configuration.rb', line 172 def context_key_bit_length @context_key_bit_length end |
.context_key_secret ⇒ Object
Returns the value of attribute context_key_secret.
172 173 174 |
# File 'lib/gitlab/experiment/configuration.rb', line 172 def context_key_secret @context_key_secret end |
.cookie_domain ⇒ Object
Returns the value of attribute cookie_domain.
172 173 174 |
# File 'lib/gitlab/experiment/configuration.rb', line 172 def @cookie_domain end |
.cookie_name ⇒ Object
Returns the value of attribute cookie_name.
172 173 174 |
# File 'lib/gitlab/experiment/configuration.rb', line 172 def @cookie_name end |
.default_rollout ⇒ Object
Returns the value of attribute default_rollout.
172 173 174 |
# File 'lib/gitlab/experiment/configuration.rb', line 172 def default_rollout @default_rollout end |
.logger ⇒ Object
Returns the value of attribute logger.
172 173 174 |
# File 'lib/gitlab/experiment/configuration.rb', line 172 def logger @logger end |
.mount_at ⇒ Object
Returns the value of attribute mount_at.
172 173 174 |
# File 'lib/gitlab/experiment/configuration.rb', line 172 def mount_at @mount_at end |
.name_prefix ⇒ Object
Returns the value of attribute name_prefix.
172 173 174 |
# File 'lib/gitlab/experiment/configuration.rb', line 172 def name_prefix @name_prefix end |
.nested_behavior ⇒ Object
Returns the value of attribute nested_behavior.
172 173 174 |
# File 'lib/gitlab/experiment/configuration.rb', line 172 def nested_behavior @nested_behavior end |
.publishing_behavior ⇒ Object
Returns the value of attribute publishing_behavior.
172 173 174 |
# File 'lib/gitlab/experiment/configuration.rb', line 172 def publishing_behavior @publishing_behavior end |
.redirect_url_validator ⇒ Object
Returns the value of attribute redirect_url_validator.
172 173 174 |
# File 'lib/gitlab/experiment/configuration.rb', line 172 def redirect_url_validator @redirect_url_validator end |
.strict_registration ⇒ Object
Returns the value of attribute strict_registration.
172 173 174 |
# File 'lib/gitlab/experiment/configuration.rb', line 172 def strict_registration @strict_registration end |
.tracking_behavior ⇒ Object
Returns the value of attribute tracking_behavior.
172 173 174 |
# File 'lib/gitlab/experiment/configuration.rb', line 172 def tracking_behavior @tracking_behavior end |
Class Method Details
.deprecated(*args, version:, stack: 0) ⇒ Object
Internal warning helpers.
198 199 200 201 202 203 204 205 206 207 208 209 |
# File 'lib/gitlab/experiment/configuration.rb', line 198 def deprecated(*args, version:, stack: 0) deprecator = deprecator(version) args << args.pop.to_s.gsub('{{release}}', "#{deprecator.gem_name} #{deprecator.deprecation_horizon}") args << caller_locations(4 + stack) if args.length == 2 deprecator.warn(*args) else args[0] = "`#{args[0]}`" deprecator.deprecation_warning(*args) end end |