public
Fork of vigetlabs/sandstone
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/bscofield/sandstone.git
ben (author)
Tue Feb 26 07:02:46 -0800 2008
commit  73cf952bfd33f3dd03b406bd3fcf7c58ce90eedf
tree    9981db9e70fddb61a335f8912c7d62b11c0497aa
parent  41a1d6375bcb6e30fd4a702beaa26dc4d29ee843
sandstone / install.rb
100644 15 lines (12 sloc) 0.515 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Install 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/generate'
 
  Rails::Generator::Scripts::Generate.new.run(['sandstone'])
end
 
puts IO.read(File.join(File.dirname(__FILE__), 'README'))