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)
Mon Apr 28 02:22:50 -0700 2008
commit  5db64f9a322abc7ec733ee4452358a1819a65670
tree    f088acf293d832ee07c4bc2a80528db033788f50
parent  332d458a4b144fd0c2f2219272517992c5998a3a
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')