Class: Redata::InitGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/redata/init_generator.rb

Instance Method Summary collapse

Instance Method Details

#init_stepsObject



8
9
10
11
12
13
14
# File 'lib/generators/redata/init_generator.rb', line 8

def init_steps
  copy_file 'source_query_example.red.sql', 'query/sources/sources_query_example.red.sql'
  copy_file 'adjust_query_example.red.sql', 'query/adjust/adjust_query_example.red.sql'
  copy_file 'redata.yml', 'config/redata.yml'
  copy_file 'red_access.yml', 'config/red_access.yml'
  copy_file 'relations.rb', 'config/relations.rb'
end