1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

load file appropriately.

This commit is contained in:
Nat Welch 2013-03-12 14:34:20 -07:00
parent afa9b025e9
commit 8944e4c077

View file

@ -74,7 +74,7 @@ module Fog
@project = options[:google_project]
google_client_email = options[:google_client_email]
@api_url = base_url + api_version + '/projects/'
key = ::Google::APIClient::KeyUtils.load_from_pkcs12(options[:google_key_location], 'notasecret')
key = ::Google::APIClient::KeyUtils.load_from_pkcs12(File.expand_path(options[:google_key_location]), 'notasecret')
@client = ::Google::APIClient.new
@client.authorization = Signet::OAuth2::Client.new(