google-api-ruby-client icon indicating copy to clipboard operation
google-api-ruby-client copied to clipboard

environment specific json

Open vipulkhullar opened this issue 9 years ago • 1 comments

hi all , I am using version 0.9.26 and rails 3.2.1,ruby 2.0 is there any feature which allows to load path of json file specific to environment.

ie ENV['GOOGLE_APPLICATION_CREDENTIALS'] = "path/to/file"[Rails.env]

as I want to have different keys for different environment or some way to convert into yml files like this

development: credentials same as json file production: different credentials test: different credentials

vipulkhullar avatar May 19 '17 10:05 vipulkhullar

Not in this client, but you might be able to do what you're looking for with https://github.com/bkeepers/dotenv

sqrrrl avatar May 19 '17 20:05 sqrrrl