diff --git a/lib/google/api_client/auth/file_storage.rb b/lib/google/api_client/auth/file_storage.rb index 3c94735b5..b87bb2e09 100644 --- a/lib/google/api_client/auth/file_storage.rb +++ b/lib/google/api_client/auth/file_storage.rb @@ -34,11 +34,17 @@ module Google :path def initialize(path) + Google::ApiClient.logger("DEPRECATED: Please use Storage Class instead.") @path = path store = Google::APIClient::FileStore.new(@path) @storage = Google::APIClient::Storage.new(store) end + def load_credentials + Google::ApiClient.logger("DEPRECATED: Please use Storage Class instead.") + storage.authorize + end + def authorization storage.authorization end