Module: Rdt
- Defined in:
- lib/rdt.rb,
lib/rdt/model.rb,
lib/rdt/runner.rb,
lib/rdt/mermaid.rb,
lib/rdt/sql_template_helpers.rb
Defined Under Namespace
Modules: SqlTemplateHelpers Classes: Mermaid, Model, Runner
Constant Summary collapse
- SCHEMA =
"felipe_dbt"
Class Method Summary collapse
Class Method Details
.settings ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/rdt.rb', line 10 def self.settings @settings ||= begin rdt_path = Rails.root.join("config", "rdt.yml").to_s dbt_path = Rails.root.join("config", "dbt.yml").to_s path = File.exist?(rdt_path) ? rdt_path : dbt_path if File.exist?(path) YAML.safe_load(ERB.new(File.read(path)).result, aliases: true) else {} end end end |