Jan Tattermusch | 7897ae9 | 2017-06-07 20:57:36 | [diff] [blame] | 1 | # Copyright 2015 gRPC authors. |
nnoble | 097ef9b | 2014-12-02 01:06:10 | [diff] [blame] | 2 | # |
Jan Tattermusch | 7897ae9 | 2017-06-07 20:57:36 | [diff] [blame] | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
nnoble | 097ef9b | 2014-12-02 01:06:10 | [diff] [blame] | 6 | # |
Jan Tattermusch | 7897ae9 | 2017-06-07 20:57:36 | [diff] [blame] | 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
nnoble | 097ef9b | 2014-12-02 01:06:10 | [diff] [blame] | 8 | # |
Jan Tattermusch | 7897ae9 | 2017-06-07 20:57:36 | [diff] [blame] | 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
nnoble | 097ef9b | 2014-12-02 01:06:10 | [diff] [blame] | 14 | |
murgatroid99 | 00450af | 2016-01-05 23:13:08 | [diff] [blame] | 15 | ssl_roots_path = File.expand_path('../../../../etc/roots.pem', __FILE__) |
murgatroid99 | b570322 | 2015-12-18 21:05:34 | [diff] [blame] | 16 | |
murgatroid99 | 79108d0 | 2016-04-22 20:41:00 | [diff] [blame] | 17 | require_relative 'grpc/errors' |
Mike Moore | 0f8dced | 2019-08-14 00:21:44 | [diff] [blame] | 18 | require_relative 'grpc/structs' |
murgatroid99 | 79108d0 | 2016-04-22 20:41:00 | [diff] [blame] | 19 | require_relative 'grpc/grpc' |
| 20 | require_relative 'grpc/logconfig' |
| 21 | require_relative 'grpc/notifier' |
| 22 | require_relative 'grpc/version' |
Mike Moore | b132c34 | 2019-08-08 23:18:38 | [diff] [blame] | 23 | require_relative 'grpc/core/status_codes' |
murgatroid99 | 79108d0 | 2016-04-22 20:41:00 | [diff] [blame] | 24 | require_relative 'grpc/core/time_consts' |
| 25 | require_relative 'grpc/generic/active_call' |
| 26 | require_relative 'grpc/generic/client_stub' |
| 27 | require_relative 'grpc/generic/service' |
| 28 | require_relative 'grpc/generic/rpc_server' |
Shaun McCormick | eec7a91 | 2017-08-11 19:57:14 | [diff] [blame] | 29 | require_relative 'grpc/generic/interceptors' |
murgatroid99 | 9e3538c | 2016-04-28 20:27:19 | [diff] [blame] | 30 | |
| 31 | begin |
| 32 | file = File.open(ssl_roots_path) |
| 33 | roots = file.read |
| 34 | GRPC::Core::ChannelCredentials.set_default_roots_pem roots |
| 35 | ensure |
| 36 | file.close |
| 37 | end |