Class: ClowderCommonRuby::RailsConfig
- Inherits:
-
Object
- Object
- ClowderCommonRuby::RailsConfig
- Defined in:
- lib/clowder-common-ruby/rails_config.rb
Class Method Summary collapse
-
.db_config ⇒ Object
Short path for db config.
-
.to_h ⇒ Object
Rails configuration hash.
Class Method Details
.db_config ⇒ Object
Short path for db config
24 25 26 27 28 |
# File 'lib/clowder-common-ruby/rails_config.rb', line 24 def db_config config = ClowderCommonRuby::Config.load configure_database(config) end |
.to_h ⇒ Object
Rails configuration hash
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/clowder-common-ruby/rails_config.rb', line 7 def to_h config = ClowderCommonRuby::Config.load { kafka: configure_kafka(config), logging: configure_cloudwatch(config), redis: configure_redis(config), endpoints: configure_endpoints(config, :dependency_endpoints), private_endpoints: configure_endpoints(config, :private_dependency_endpoints), database: configure_database(config), prometheus_exporter_port: config&.metricsPort, tls_ca_path: config.tlsCAPath, web_port: config.webPort } end |