Class: LunarShell::SatelliteGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/lunar_shell/satellite/satellite_generator.rb

Instance Method Summary collapse

Instance Method Details

#add_routeObject



13
14
15
# File 'lib/generators/lunar_shell/satellite/satellite_generator.rb', line 13

def add_route
  satellite_route singular_name
end

#copy_satellite_filesObject



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 options[:include_test]
end