openstreetmap-website/vendor/plugins/irs_process_scripts/uninstall.rb
Tom Hughes 719a06fdfa Add irs_process_scripts plugin to replace process control scripts used
by live site which were dropped in rails 2.3 core.
2009-06-15 11:32:41 +00:00

8 lines
No EOL
199 B
Ruby

# Install hook code here
unless defined?(RAILS_ROOT)
$stderr.puts "$0 must be run from RAILS_ROOT with -rconfig/boot"
exit
end
require 'fileutils'
FileUtils.rm_rf(RAILS_ROOT + '/script/process')