Sha256: 4166709e8921701cb7618da704869db3b4725e04ff19984b2884018962398ae1

Contents?: true

Size: 269 Bytes

Versions: 3

Compression:

Stored size: 269 Bytes

Contents

module RobotsDotText
  class MoveExistingRobotsFileGenerator < Rails::Generators::Base
    source_root Rails.root
    def move_existing_robots_file
      copy_file "public/robots.txt", "public/robots.default.txt"
      remove_file "public/robots.txt"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
robots_dot_text-0.0.3 lib/generators/robots_dot_text/move_existing_robots_file_generator.rb
robots_dot_text-0.0.2 lib/generators/robots_dot_text/move_existing_robots_file_generator.rb
robots_dot_text-0.0.1 lib/generators/robots_dot_text/move_existing_robots_file_generator.rb