Sha256: 7f4fecd67b8b722a01d01ac604fe14f0028ef0acff08484c9ce6e6cf53f1dc8d
Contents?: true
Size: 569 Bytes
Versions: 5
Compression:
Stored size: 569 Bytes
Contents
require 'rails/generators' module NetworkExecutive class UninstallGenerator < Rails::Generators::Base source_root File.expand_path( '../templates', __FILE__ ) desc 'NetworkExecutive uninstall' def uninstall say 'Uninstalling NetworkExecutive...', :magenta remove_file 'config/initializers/network_executive.rb' remove_file 'config/initializers/network_executive.rb.example' gsub_file 'config/routes.rb', /mount NetworkExecutive::Engine => \'\/.+\', as:\S*\'network_executive\'/, '' say 'Done!', :green end end end
Version data entries
5 entries across 5 versions & 1 rubygems