]> projects.mako.cc - selectricity/blob - vendor/plugins/ym4r_gm/install.rb
switched license to agpl-3
[selectricity] / vendor / plugins / ym4r_gm / install.rb
1 require 'fileutils'
2
3 #Copy the Javascript files
4 FileUtils.copy(Dir[File.dirname(__FILE__) + '/javascript/*.js'], File.dirname(__FILE__) + '/../../../public/javascripts/')
5
6 #copy the gmaps_api_key file
7 gmaps_config = File.dirname(__FILE__) + '/../../../config/gmaps_api_key.yml'
8 unless File.exist?(gmaps_config)
9   FileUtils.copy(File.dirname(__FILE__) + '/gmaps_api_key.yml.sample',gmaps_config)
10 end

Benjamin Mako Hill || Want to submit a patch?