Skip to content

Commit 34d3c18

Browse files
author
Michael C. Beck
committed
added deprecation warnings to file_storage
1 parent 0e9637c commit 34d3c18

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/google/api_client/auth/file_storage.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,17 @@ class FileStorage
3434
:path
3535

3636
def initialize(path)
37+
Google::ApiClient.logger("DEPRECATED: Please use Storage Class instead.")
3738
@path = path
3839
store = Google::APIClient::FileStore.new(@path)
3940
@storage = Google::APIClient::Storage.new(store)
4041
end
4142

43+
def load_credentials
44+
Google::ApiClient.logger("DEPRECATED: Please use Storage Class instead.")
45+
storage.authorize
46+
end
47+
4248
def authorization
4349
storage.authorization
4450
end

0 commit comments

Comments
 (0)