Module: ActiveRecord::Dbt::Configuration::UsedDbtPackage

Included in:
ActiveRecord::Dbt::Config
Defined in:
lib/active_record/dbt/configuration/used_dbt_package.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#used_dbt_package_names=(value) ⇒ Object

Sets the attribute used_dbt_package_names

Parameters:

  • value

    the value to set the attribute used_dbt_package_names to.



7
8
9
# File 'lib/active_record/dbt/configuration/used_dbt_package.rb', line 7

def used_dbt_package_names=(value)
  @used_dbt_package_names = value
end

Instance Method Details

#used_dbt_utils?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/active_record/dbt/configuration/used_dbt_package.rb', line 9

def used_dbt_utils?
  used_dbt_package_names.include?('dbt-labs/dbt_utils')
end

#used_dbterd?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/active_record/dbt/configuration/used_dbt_package.rb', line 13

def used_dbterd?
  used_dbt_package_names.include?('datnguye/dbterd')
end