You can generate a jpeg graph of the state machine defined in both the target_image and provider_image class (NOTE they both use the same state machine) using the following rake command:
``` rake state_machine:draw FILE=../../app/models/tim/target_image.rb CLASS=Tim::TargetImage rake state_machine:draw FILE=../../app/models/tim/provider_image.rb CLASS=Tim::ProviderImage ``` You can merge this Pull Request by running:
git pull https://github.com/mtaylor/tim state_machine
Or you can view, comment on it, or merge it online at:
https://github.com/aeolus-incubator/tim/pull/108
-- Commit Summary --
* Added State Machine to target/provider images
-- File Changes --
M Gemfile (1) A app/models/tim/fsm.rb (39) M app/models/tim/provider_image.rb (2) M app/models/tim/target_image.rb (2) A db/migrate/20130211140935_add_state_to_provider_image_and_target_image.rb (6) M test/dummy/db/schema.rb (2) M tim.gemspec (4)
-- Patch Links --
https://github.com/aeolus-incubator/tim/pull/108.patch https://github.com/aeolus-incubator/tim/pull/108.diff
Minor note, could you add the new deps in the rpm spec as part of this path, s it doesn't get out of sync?
--- Reply to this email directly or view it on GitHub: https://github.com/aeolus-incubator/tim/pull/108#issuecomment-13435882
aeolus-devel@lists.fedorahosted.org