public
Description: A port of the YM4R-GM plugin for rails, to github
Homepage:
Clone URL: git://github.com/queso/ym4r-gm.git
ym4r-gm / install.rb
100644 11 lines (8 sloc) 0.399 kb
1
2
3
4
5
6
7
8
9
10
11
require 'fileutils'
 
#Copy the Javascript files
FileUtils.copy(Dir[File.dirname(__FILE__) + '/javascript/*.js'], File.dirname(__FILE__) + '/../../../public/javascripts/')
 
#copy the gmaps_api_key file
gmaps_config = File.dirname(__FILE__) + '/../../../config/gmaps_api_key.yml'
unless File.exist?(gmaps_config)
  FileUtils.copy(File.dirname(__FILE__) + '/gmaps_api_key.yml.sample',gmaps_config)
end