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
Search Repo:
Alexander Lang (author)
Fri Apr 25 08:55:20 -0700 2008
commit  0ab7bbdf237aa0f8ee57bca78749eb36720b4a06
tree    67f0400cd0ae71d4eebdaa7f3003239e2f14d853
parent  96ee7079039b3c4dd4b8b5ed2b0ebf6ebb7e206b
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')