public
Description: A resourceful plugin providing lightweight content management functionality to Rails applications
Homepage: http://www.viget.com/extend/sandstone-a-drop-in-cms-for-existing-rails-applications/
Clone URL: git://github.com/vigetlabs/sandstone.git
sandstone / uninstall.rb
100644 13 lines (11 sloc) 0.456 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
# Uninstall hook code here
unless Kernel.const_defined?('RAILS_ROOT')
  Kernel.const_set('RAILS_ROOT', File.join(File.dirname(__FILE__), '..', '..', '..'))
end
 
if (File.exists?(RAILS_ROOT) && File.exists?(File.join(RAILS_ROOT, 'app')))
  require "#{RAILS_ROOT}/config/boot"
  require "#{RAILS_ROOT}/config/environment"
  require 'rails_generator'
  require 'rails_generator/scripts/destroy'
 
  Rails::Generator::Scripts::Destroy.new.run(['sandstone'])
end