Class: Shoppe::SetupGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Shoppe::SetupGenerator
- Defined in:
- lib/shoppe/setup_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_config_file ⇒ Object
9 10 11 |
# File 'lib/shoppe/setup_generator.rb', line 9 def create_config_file create_file "config/shoppe.yml", File.read(File.join(Shoppe.root, 'config', 'shoppe.example.yml')) end |
#create_route ⇒ Object
5 6 7 |
# File 'lib/shoppe/setup_generator.rb', line 5 def create_route route 'mount Shoppe::Engine => "/shoppe"' end |