Class: Banis::ModDev::AR::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/banis/mod_dev/ar/config.rb

Instance Method Summary collapse

Instance Method Details

#config_rootObject

where to read/write the database.yaml



18
19
20
# File 'lib/banis/mod_dev/ar/config.rb', line 18

def config_root
  File.join(db_root,"config") 
end

#db_rootObject

where to write the sqlite output?



13
14
15
# File 'lib/banis/mod_dev/ar/config.rb', line 13

def db_root
  File.join(File.dirname(__FILE__),"..","..","..","..","db") 
end

#envObject

which env to use?



8
9
10
# File 'lib/banis/mod_dev/ar/config.rb', line 8

def env
  "development" 
end

#migration_rootObject

where to write/read the migration file



23
24
25
# File 'lib/banis/mod_dev/ar/config.rb', line 23

def migration_root
  File.join(db_root,"migrate") 
end

#model_rootObject

where to put the generated model class



28
29
30
# File 'lib/banis/mod_dev/ar/config.rb', line 28

def model_root
  File.join(db_root,"model") 
end