Class: HumanPower::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_config_fileObject



8
9
10
# File 'lib/generators/human_power/install_generator.rb', line 8

def create_config_file
  copy_file "robots.rb", "config/robots.rb"
end

#create_routeObject



13
14
15
# File 'lib/generators/human_power/install_generator.rb', line 13

def create_route
  route %{mount HumanPower::Rails::Engine => "robots.txt"}
end