5 Commits

Author SHA1 Message Date
Joshua Harlow
4c7a7bdf64 Add a venv that can generate/write/update the states diagram
Instead of requiring manual understanding of how to generate
the states diagram, add an explicit virtualenv that can be
used to create and generate that docs diagram (and replace the
existing file with it).

Change-Id: I1738da9bf08bfda9b9be01489e8456569a31709e
2015-04-27 11:07:01 -07:00
Devananda van der Veen
072372119a Fix formatting error in states_to_dot
Fixes the following error by correctly quoting the header:

  Warning: syntax error in line 1 near 'states'

Change-Id: I94fa3b18d355c68674b16f128e477aba8e1b542e
2015-03-24 03:16:00 -07:00
Joshua Harlow
cc31c0c524 Update the states generator and regenerate the image
Change-Id: I9ab9bd12547367ab65f225618aa6c4163645fb03
2015-02-23 16:11:04 -08:00
Joshua Harlow
92c4698678 Adjust the help strings to better reflect usage
The default format is png (and not svg) so we should
note that instead of having svg mentioned (this was
leftover from the clone of this from taskflow which
does default to svg).

Change-Id: I108857ecc606ed2c12e0d5b460a8e72eb95af740
2015-01-10 21:43:40 -08:00
Joshua Harlow
47b49a009c Add a fsm state -> dot diagram generator
Add a tool (derived from taskflow's similar tool)
that can turn the state machine defined in ironic
into a dot diagram.

This diagram is much easier to look at then trying
to mentally create a similar diagram; this makes it
easier to see issues and to visualize the state machines
valid states and transitions.

For this change we need to add back in the state machine
__iter__ method so that we can correctly iterate over the
states and transitions (and events that will cause those
transitions).

Change-Id: I9da09f65a46617aa1c837ae0fc71350276df8bea
2014-12-18 11:33:31 -08:00