class Envrobots::Generators::InstallGenerator
Public Instance Methods
copy_robots()
click to toggle source
# File lib/generators/envrobots/install_generator.rb, line 6 def copy_robots path = Rails.root.join('public', 'robots.txt') if File.file? path copy_file path, 'config/robots/robots.production.txt' remove_file path else copy_file 'robots.production.txt', 'config/robots/robots.production.txt' end copy_file 'robots.other.txt', 'config/robots/robots.other.txt' end