Class: KamalGitlabReviewApp::RuntimeEnv
- Inherits:
-
Object
- Object
- KamalGitlabReviewApp::RuntimeEnv
- Defined in:
- lib/kamal_gitlab_review_app/runtime_env.rb
Class Method Summary collapse
-
.default_hash(names) ⇒ Object
Only values that must differ per MR.
- .to_h(iid:, overrides: {}) ⇒ Object
Class Method Details
.default_hash(names) ⇒ Object
Only values that must differ per MR. DB_* names stay in SECRETS_REVIEW_FILE: each review app has its own Postgres accessory container.
14 15 16 |
# File 'lib/kamal_gitlab_review_app/runtime_env.rb', line 14 def default_hash(names) KamalGitlabReviewApp::Env.default_runtime_env(names) end |
.to_h(iid:, overrides: {}) ⇒ Object
6 7 8 9 10 |
# File 'lib/kamal_gitlab_review_app/runtime_env.rb', line 6 def to_h(iid:, overrides: {}) names = KamalGitlabReviewApp::Naming.for_mr(iid:) default_hash(names).merge(stringify_keys(overrides)) end |