yamotech/activerecord-dbt

View on GitHub
lib/active_record/dbt/configuration/parser.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module ActiveRecord
  module Dbt
    module Configuration
      module Parser
        def parse_yaml(path)
          return {} if path.nil?

          YAML.load_file(path).with_indifferent_access || {}
        end
      end
    end
  end
end