class Bobot::UninstallGenerator
Public Instance Methods
uninstall()
click to toggle source
# File lib/generators/bobot/uninstall_generator.rb, line 13 def uninstall display 'Why you leaving so soon? :(' gsub_file 'config/routes.rb', %r{mount Bobot::Engine => \'\/.+\'(, as: \'bot\')?}, '' remove_file 'config/initializers/bobot.rb' remove_file 'app/bobot/workflow.rb' remove_file 'config/locales/bobot.en.yml' remove_file 'config/locales/bobot.fr.yml' display 'Done! Bobot has been uninstalled.' end