Class: Cogy::Generators::Install
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Cogy::Generators::Install
- Defined in:
- lib/generators/cogy/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_sample_command_and_readme ⇒ Object
15 16 17 18 |
# File 'lib/generators/cogy/install_generator.rb', line 15 def copy_sample_command_and_readme template "command_file.rb", "cogy/general.rb" template "cogy_folder_readme.md", "cogy/README.md" end |
#mount_engine ⇒ Object
20 21 22 |
# File 'lib/generators/cogy/install_generator.rb', line 20 def mount_engine route "mount Cogy::Engine, at: '/cogy'" end |
#run_config_generator ⇒ Object
11 12 13 |
# File 'lib/generators/cogy/install_generator.rb', line 11 def run_config_generator generate "cogy:config" end |