Class: LunarShell::SatelliteGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- LunarShell::SatelliteGenerator
- Defined in:
- lib/generators/lunar_shell/satellite/satellite_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_route ⇒ Object
13 14 15 |
# File 'lib/generators/lunar_shell/satellite/satellite_generator.rb', line 13 def add_route satellite_route singular_name end |
#copy_satellite_files ⇒ Object
7 8 9 10 11 |
# File 'lib/generators/lunar_shell/satellite/satellite_generator.rb', line 7 def copy_satellite_files template 'controller.rb', controller_path template 'view.rb', view_path template 'test.rb', test_path if [:include_test] end |