public
Description: Comatose is a micro CMS, implemented as a Rails plugin, that is designed to be easy to embed and extend.
Homepage: http://comatose.rubyforge.org
Clone URL: git://github.com/darthapo/comatose.git
Click here to lend your support to: comatose and make a donation at www.pledgie.com !
kovacs (author)
Wed Jan 07 10:26:37 -0800 2009
darthapo (committer)
Thu Feb 26 20:38:35 -0800 2009
commit  65ef4859e1403cbf1baf353c15caba91485606c4
tree    e3db29a8aa0fda58cee66e14f066d0cbb7e756dd
parent  ba32c63ed4dc24e44408eeba760bc3639f6dd77c
comatose / install.rb
100644 19 lines (13 sloc) 0.592 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'fileutils'
 
# Copy the images (*.gif) into RAILS_ROOT/public/images/comatose
RAILS_ROOT = File.expand_path( File.join(File.dirname(__FILE__), '../../../') )
 
unless FileTest.exist? File.join(RAILS_ROOT, 'public', 'images', 'comatose')
  FileUtils.mkdir( File.join(RAILS_ROOT, 'public', 'images', 'comatose') )
end
 
FileUtils.cp(
  Dir[File.join(File.dirname(__FILE__), 'resources', 'public', 'images', '*.gif')],
  File.join(RAILS_ROOT, 'public', 'images', 'comatose'),
  :verbose => true
)
 
# Show the INSTALL text file
puts IO.read(File.join(File.dirname(__FILE__), 'INSTALL'))