]> projects.mako.cc - selectricity-live/blob - vendor/plugins/sitealizer/install.rb
the embeddable widgets now grow or shrink to accomodate more candidates, there are...
[selectricity-live] / vendor / plugins / sitealizer / install.rb
1 require 'ftools'
2
3 dest_dir = File.dirname(__FILE__)+'/../../../public/images/sitealizer'
4 File.makedirs(dest_dir) unless File.exists?(dest_dir)
5
6 Dir[File.dirname(__FILE__)+'/lib/app/assets/images/*'].each do |src|
7   File.copy(src, dest_dir+'/')
8 end
9
10 puts "
11 Sitealizer v.1.1 installed
12
13 Don't forget to add the following line to your config/routes.rb:
14   map.connect '/sitealizer/:action', :controller => 'sitealizer'
15
16 == IMPORTANT ==
17 If you had previously installed 'sitemeter' you need to run the following if you want to import your stats:
18   rake sitealizer:remove_sitemeter
19   
20 Please visit http://sitealizer.rubyforge.org if you have any questions
21
22 "

Benjamin Mako Hill || Want to submit a patch?