kovacs / comatose forked from darthapo/comatose

Comatose is a micro CMS, implemented as a Rails plugin, that is designed to be easy to embed and extend.

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'))