Skip to content

Files

Latest commit

58379cd · Jan 3, 2023

History

History
This branch is 55 commits behind coinbase/temporal-ruby:master.

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 3, 2023
Jan 3, 2023
Aug 31, 2021
May 10, 2021
Jan 3, 2023
Mar 23, 2022
Jan 3, 2023
Nov 3, 2021
Mar 19, 2020
Nov 4, 2020
Feb 14, 2022
Aug 21, 2020
Jun 3, 2021

Ruby Temporal Examples

This directory contains examples demonstrating different features or this library and Temporal.

To try these out you need to have a running Temporal service (setup instructions).

Install all the gem dependencies by running:

bundle install

Modify the init.rb file to point to your Temporal cluster.

Start a worker process:

bin/worker

Use this command to trigger one of the example workflows from the workflows directory:

bin/trigger NAME_OF_THE_WORKFLOW [argument_1, argument_2, ...]

Testing

To run tests, make sure the temporal server and the worker process are already running:

docker-compose up
bin/worker

To execute the tests, run:

bundle exec rspec

To add a new test that uses a new workflow or new activity, make sure to register those new workflows and activities by modifying the bin/worker file and adding them there. After any changes to that file, restart the worker process to pick up the new registrations.