isaacfeliu / geokit forked from ptb/geokit

A plugin for maps-based apps with 1) ActiveRecord extensions for geo-based finders (find within X miles); 2) geocoding through multiple providers with failover; 3) geo distance calculations; 4) IP-based location lookup; 5) before_filter for IP geocoder.; forked from official SVN repo to fix bugs

This URL has Read+Write access

Isaac Feliu (author)
Thu Mar 19 13:12:22 -0700 2009
geokit / install.rb
100644 8 lines (6 sloc) 0.44 kb
1
2
3
4
5
6
7
8
# Display to the console the contents of the README file.
puts IO.read(File.join(File.dirname(__FILE__), 'README'))
 
# Append the contents of api_keys_template to the application's environment.rb file
environment_rb = File.open(File.expand_path(File.join(File.dirname(__FILE__), '../../../config/environment.rb')), "a")
environment_rb.puts IO.read(File.join(File.dirname(__FILE__), '/assets/api_keys_template'))
environment_rb.close