public
Description: Treat an ActiveRecord model as a file attachment, storing its patch, size, content type, etc.
Homepage: http://weblog.techno-weenie.net
Clone URL: git://github.com/technoweenie/attachment_fu.git
Click here to lend your support to: attachment_fu and make a donation at www.pledgie.com !
technoweenie (author)
Sat Dec 23 09:58:15 -0800 2006
commit  d89bfe439f34f3e12fc2b6840d69e1f95be2645f
tree    45e9491434766b04b7d97377f6b3bec8cddf2b86
parent  5dc782d1f24b21b3989a18f97a3a16c2d6ef6c46
attachment_fu / install.rb
100644 5 lines (4 sloc) 0.247 kb
1
2
3
4
5
require 'fileutils'
 
s3_config = File.dirname(__FILE__) + '/../../../config/amazon_s3.yml'
FileUtils.cp File.dirname(__FILE__) + '/amazon_s3.yml.tpl', s3config unless File.exist?(s3_config)
puts IO.read(File.join(File.dirname(__FILE__), 'README'))