Class: Cogy::Generators::Install

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/cogy/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_sample_command_and_readmeObject



15
16
17
18
# File 'lib/generators/cogy/install_generator.rb', line 15

def copy_sample_command_and_readme
  template "command_file.rb", "cogy/general.rb"
  template "cogy_folder_readme.md", "cogy/README.md"
end

#mount_engineObject



20
21
22
# File 'lib/generators/cogy/install_generator.rb', line 20

def mount_engine
  route "mount Cogy::Engine, at: '/cogy'"
end

#run_config_generatorObject



11
12
13
# File 'lib/generators/cogy/install_generator.rb', line 11

def run_config_generator
  generate "cogy:config"
end