Module: Fig::Command::Action::Role::ListAsGraphviz
- Included in:
- ListDependencies::Graphviz, ListDependencies::GraphvizAllConfigs, ListVariables::Graphviz, ListVariables::GraphvizAllConfigs
- Defined in:
- lib/fig/command/action/role/list_as_graphviz.rb
Overview
Requires a #node_content(package, config_name) method.
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/fig/command/action/role/list_as_graphviz.rb', line 12 def execute() @subgraphs = {} puts 'digraph {' puts ' node [shape = box];' walk_dependency_tree( @execution_context.base_package, base_display_config_names(), include_emit, &package_gather ) emit_subgraphs puts '}' return Fig::Command::Action::EXIT_SUCCESS end |