Class: Shoppe::SetupGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/shoppe/setup_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_config_fileObject



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_routeObject



5
6
7
# File 'lib/shoppe/setup_generator.rb', line 5

def create_route
  route 'mount Shoppe::Engine => "/shoppe"'
end