Class: HumanPower::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- HumanPower::InstallGenerator
- Defined in:
- lib/generators/human_power/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_config_file ⇒ Object
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_route ⇒ Object
13 14 15 |
# File 'lib/generators/human_power/install_generator.rb', line 13 def create_route route %{mount HumanPower::Rails::Engine => "robots.txt"} end |