Class: Savvy::ConfigurationDSL Private
- Inherits:
-
Object
- Object
- Savvy::ConfigurationDSL
- Includes:
- Cleanroom
- Defined in:
- lib/savvy/configuration_dsl.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Configuration DSL for a Configuration.
Keeps the methods separate / cleaner.
Instance Method Summary collapse
- #app_name(value) ⇒ Object private
- #include_app_env_in_namespaces! ⇒ Object private
-
#initialize(config) ⇒ ConfigurationDSL
constructor
private
A new instance of ConfigurationDSL.
- #redis_default_url(url) ⇒ Object private
- #redis_env_vars(*vars) ⇒ Object private
Constructor Details
#initialize(config) ⇒ ConfigurationDSL
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ConfigurationDSL.
10 11 12 |
# File 'lib/savvy/configuration_dsl.rb', line 10 def initialize(config) @config = config end |
Instance Method Details
#app_name(value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
14 15 16 |
# File 'lib/savvy/configuration_dsl.rb', line 14 def app_name(value) @config.app_name = value end |
#include_app_env_in_namespaces! ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
20 21 22 |
# File 'lib/savvy/configuration_dsl.rb', line 20 def include_app_env_in_namespaces! @config.include_app_env = true end |
#redis_default_url(url) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
26 27 28 |
# File 'lib/savvy/configuration_dsl.rb', line 26 def redis_default_url(url) @config.redis_default_url = url end |
#redis_env_vars(*vars) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
32 33 34 |
# File 'lib/savvy/configuration_dsl.rb', line 32 def redis_env_vars(*vars) @config.redis_env_vars = vars.flatten end |