|
|
%!s(int64=10) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| lib | %!s(int64=10) %!d(string=hai) anos | |
| .gitignore | %!s(int64=10) %!d(string=hai) anos | |
| Gemfile | %!s(int64=10) %!d(string=hai) anos | |
| README.md | %!s(int64=10) %!d(string=hai) anos | |
| greeter.gemspec | %!s(int64=10) %!d(string=hai) anos | |
| greeter_client.rb | %!s(int64=10) %!d(string=hai) anos | |
| greeter_server.rb | %!s(int64=10) %!d(string=hai) anos | |
This requires Ruby 2.1, as the gRPC API surface uses keyword args.
Use bundler to install
$ # from this directory
$ gem install bundler && bundle install
Run the server
$ # from this directory
$ bundle exec ./greeter_server.rb &
Run the client
$ # from this directory
$ bundle exec ./greeter_client.rb