public
Description: Rails plugin providing a fallback server for mongrel
Homepage: http://www.sanityinc.com/
Clone URL: git://github.com/purcell/maintenance_server.git
Click here to lend your support to: maintenance_server and make a donation at www.pledgie.com !
purcell (author)
Sat Nov 17 01:42:50 -0800 2007
commit  4c0f5173311d78b6bc8035570e70b99b617d2352
tree    ca570b11fbd3acf993995d0f36589bd8fd449b80
parent  5e64a0aadeac73d5b07d50a0cf4453bc6e2a8742
maintenance_server / uninstall.rb
100755 9 lines (6 sloc) 0.257 kb
1
2
3
4
5
6
7
8
9
#!/usr/bin/env ruby
 
require "#{File.dirname($0)}/../../../config/boot" unless defined?(RAILS_ROOT)
 
for f in ["#{RAILS_ROOT}/script/maintenance_server", "#{RAILS_ROOT}/public/maintenance.html"]
  puts "Removing #{f}"
  File.unlink(f) if File.exist?(f)
end