Class: ActiveRecord::Dbt::Generators::ConfigGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ActiveRecord::Dbt::Generators::ConfigGenerator
- Defined in:
- lib/generators/active_record/dbt/config/config_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_staging_model_sql_tt_file ⇒ Object
13 14 15 16 |
# File 'lib/generators/active_record/dbt/config/config_generator.rb', line 13 def copy_staging_model_sql_tt_file copy_file File.('../staging_model/templates/staging_model.sql.tt', __dir__), "#{config.config_directory_path}/staging_model.sql.tt" end |
#create_source_config_file ⇒ Object
9 10 11 |
# File 'lib/generators/active_record/dbt/config/config_generator.rb', line 9 def create_source_config_file template 'source_config.yml.tt', config.source_config_path end |