public
Description: a ruby on rails plugin to create and display a social feed
Homepage: http://upstream-berlin.com/blog/open-source/#social_feed
Clone URL: git://github.com/langalex/social_feed.git
Alexander Lang (author)
Tue Apr 29 01:50:41 -0700 2008
commit  6c62013270ad852ddea1fbdf85ef70e1a228a668
tree    0bbcd3091d623d915d84cfaf261739c6bc2c3890
parent  5db64f9a322abc7ec733ee4452358a1819a65670
social_feed / install.rb
100644 35 lines (25 sloc) 1.199 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
require 'fileutils'
 
__DIR__ = File.dirname(__FILE__)
RAILS_ROOT = __DIR__ + '/../../..'
 
# generate migration
# done by user
 
# add events directory to load path
# done by user
 
# create events directory
FileUtils.mkdir RAILS_ROOT + '/app/models/events'
 
# copy mailer template
FileUtils.cp __DIR__ + '/lib/feed_event_mailer.rb.template', RAILS_ROOT + '/app/models/feed_event_mailer.rb'
 
# create mailer views directory
FileUtils.mkdir RAILS_ROOT + '/app/views/feed_event_mailer'
 
# copy controller views, partials
FileUtils.mkdir RAILS_ROOT + '/app/views/feed_events'
FileUtils.cp __DIR__ + '/lib/feed_events_controller.rb.template', RAILS_ROOT + '/app/controllers/feed_events_controller.rb'
FileUtils.cp __DIR__ + '/views/index.html.erb', RAILS_ROOT + '/app/views/feed_events'
FileUtils.cp __DIR__ + '/views/settings.html.erb', RAILS_ROOT + '/app/views/feed_events'
FileUtils.cp __DIR__ + '/views/destroy.rjs', RAILS_ROOT + '/app/views/feed_events'
FileUtils.cp __DIR__ + '/views/_user_feed.html.erb', RAILS_ROOT + '/app/views/feed_events'
 
# copy config file
FileUtils.cp __DIR__ + '/social_feed.yml', RAILS_ROOT + '/config'
 
# add routes
# done by user
 
puts File.read(__DIR__ + '/INSTALL')