Skip to content

Commit

Permalink
Parse config stored in api_keys.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreisner committed Apr 30, 2020
1 parent b723d0f commit 9b8984d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@
require 'bundler/setup'
require 'geocoder'

if File.exist?("api_keys.yml")
require 'yaml'
@api_keys = YAML.load(File.read("api_keys.yml"), symbolize_names: true)
Geocoder.configure(@api_keys)
end

require 'irb'
IRB.start

0 comments on commit 9b8984d

Please sign in to comment.