collectiveidea / facebooker forked from mmangino/facebooker

The facebooker Rails plugin

This URL has Read+Write access

Victor Costan (author)
Tue Mar 24 20:09:01 -0700 2009
brandon (committer)
Wed Mar 25 05:33:51 -0700 2009
facebooker / install.rb
100644 13 lines (10 sloc) 0.439 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'fileutils'
require 'rubygems'
 
dir = File.dirname(__FILE__)
templates = File.join(dir, 'generators', 'facebook', 'templates')
config = File.join('config', 'facebooker.yml')
script = File.join('public', 'javascripts', 'facebooker.js')
 
[config, script].each do |path|
  FileUtils.cp File.join(templates, path), File.join(RAILS_ROOT, path) unless File.exist?(File.join(RAILS_ROOT, path))
end
puts IO.read(File.join(dir, 'README'))