class RobotsDotText::MoveExistingRobotsFileGenerator

Public Instance Methods

move_existing_robots_file() click to toggle source
# 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