Class: RobotsDotText::MoveExistingRobotsFileGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- RobotsDotText::MoveExistingRobotsFileGenerator
- Defined in:
- lib/generators/robots_dot_text/move_existing_robots_file_generator.rb
Instance Method Summary collapse
Instance Method Details
#move_existing_robots_file ⇒ Object
4 5 6 7 |
# File 'lib/generators/robots_dot_text/move_existing_robots_file_generator.rb', line 4 def move_existing_robots_file copy_file "public/robots.txt", "public/robots.default.txt" remove_file "public/robots.txt" end |