Here you can find Ruby code examples from RabbitMQ tutorials.
These tutorials require Ruby 2.2 or later, Bundler and Bunny to be installed.
To install Bunny with Bundler, do
bundle install
To run tutorial one: "Hello World!":
bundle exec ruby send.rb
bundle exec ruby receive.rb
bundle exec ruby new_task.rb
bundle exec ruby worker.rb
Tutorial three: Publish/Subscribe
bundle exec ruby receive_logs.rb
bundle exec ruby emit_log.rb
bundle exec ruby receive_logs_direct.rb
bundle exec ruby emit_log_direct.rb
bundle exec ruby receive_logs_topic.rb
bundle exec ruby emit_log_topic.rb
bundle exec ruby rpc_server.rb
bundle exec ruby rpc_client.rb
To learn more, see Bunny documentation.