Class: ActiveRecord::Dbt::Generators::ConfigGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/active_record/dbt/config/config_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_staging_model_sql_tt_fileObject



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.expand_path('../staging_model/templates/staging_model.sql.tt', __dir__),
            "#{config.config_directory_path}/staging_model.sql.tt"
end

#create_source_config_fileObject



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