Skip to content

Commit

Permalink
Update docs and build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Nephin committed Feb 13, 2013
1 parent 344e5bd commit 474f29b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ html:
$(PYTHON) tools/state_diagram.py
mkdir -p $(DOCS_STATICSDIR)
$(DOT) -o$(DOCS_STATICSDIR)/action.png action.dot
$(DOT) -o$(DOCS_STATICSDIR)/service.png service.dot
$(DOT) -o$(DOCS_STATICSDIR)/service_instance.png service_instance.dot
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(DOCS_DIR) $(DOCS_BUILDDIR)/html
@echo
Expand Down
6 changes: 0 additions & 6 deletions docs/services.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@ State Diagram
This diagram shows all the states and (where applicable) the command used to
transition between states.

Service State
~~~~~~~~~~~~~

.. image:: images/service.png
:width: 680px

Service Instance State
~~~~~~~~~~~~~~~~~~~~~~

Expand Down
5 changes: 2 additions & 3 deletions tools/state_diagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"""
from tron.core.actionrun import ActionRun
from tron.core.service import Service, ServiceInstance
from tron.core.service import ServiceInstance

def traverse_graph(starting_state, func=lambda f, a, t: None, seen_states=None):
"""Traverse the graph depth-first without cycling."""
Expand Down Expand Up @@ -54,8 +54,7 @@ def dot_from_starting_state(starting_state):

machines = {
'action': ActionRun.STATE_SCHEDULED,
'service': Service.STATE_DOWN,
'service_instance': ServiceInstance.STATE_DOWN
'service_instance': ServiceInstance.STATE_DOWN,
}

if __name__ == "__main__":
Expand Down

0 comments on commit 474f29b

Please sign in to comment.