Class: Carpentry::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Carpentry::Generators::InstallGenerator
- Defined in:
- lib/generators/carpentry/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_carpentry_routes ⇒ Object
9 10 11 |
# File 'lib/generators/carpentry/install/install_generator.rb', line 9 def add_carpentry_routes route 'mount_carpentry_at "/p"' end |
#create_directory_with_gitkeep ⇒ Object
4 5 6 7 |
# File 'lib/generators/carpentry/install/install_generator.rb', line 4 def create_directory_with_gitkeep empty_directory "app/views/carpentry/prototypes" create_file "app/views/carpentry/prototypes/.gitkeep" end |