samvera / hyrax

Hyrax is a Ruby on Rails Engine built by the Samvera community. Hyrax provides a foundation for creating many different digital repository applications.
http://hyrax.samvera.org/
Apache License 2.0
182 stars 122 forks source link

📚 Add Hyrax::Transactions::Grapher command line #6779

Open jeremyf opened 2 months ago

jeremyf commented 2 months ago
$ bundle exec rails runner -e development "pp Hyrax::Transactions::Grapher.call"
=> {"publish" => {
       "class_name" => "Publish",
       "events" => ["on_publish"],
       "steps" => {
         "send_notice" => {
           "class_name" => "SendNotice",
           "events" => [],
           "steps" => [] }}}}

As a future step, this might be worth "auto-generating" a diagram for documentation (or at least occasional re-building).