Method: Cms.add_generator_paths
- Defined in:
- lib/cms/init.rb
.add_generator_paths(src_root, *files) ⇒ Object
This is used by CMS modules to register with the CMS generator which files should be copied over to the app when the CMS generator is run. src_root is the absolute path to the root of the files, then each argument after that is a Dir.glob pattern string.
40 41 42 |
# File 'lib/cms/init.rb', line 40 def add_generator_paths(src_root, *files) generator_paths << [src_root, files] end |