added deprecation warnings to file_storage

This commit is contained in:
Michael C. Beck 2013-11-15 10:27:46 +01:00
parent 0e9637c77c
commit 34d3c18fed
1 changed files with 6 additions and 0 deletions

View File

@ -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