added deprecation warnings to file_storage
This commit is contained in:
parent
0e9637c77c
commit
34d3c18fed
|
@ -34,11 +34,17 @@ module Google
|
||||||
:path
|
:path
|
||||||
|
|
||||||
def initialize(path)
|
def initialize(path)
|
||||||
|
Google::ApiClient.logger("DEPRECATED: Please use Storage Class instead.")
|
||||||
@path = path
|
@path = path
|
||||||
store = Google::APIClient::FileStore.new(@path)
|
store = Google::APIClient::FileStore.new(@path)
|
||||||
@storage = Google::APIClient::Storage.new(store)
|
@storage = Google::APIClient::Storage.new(store)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def load_credentials
|
||||||
|
Google::ApiClient.logger("DEPRECATED: Please use Storage Class instead.")
|
||||||
|
storage.authorize
|
||||||
|
end
|
||||||
|
|
||||||
def authorization
|
def authorization
|
||||||
storage.authorization
|
storage.authorization
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue