Module: Gaudi::Documentation

Defined in:
lib/gaudi/tasks/doc.rb

Instance Method Summary collapse

Instance Method Details

#graph_deployment(deployment, system_config) ⇒ Object

A simple implementation using the graph gem that creates a graph of a deployment's dependencies grouped by program


4
5
6
7
8
9
10
11
12
# File 'lib/gaudi/tasks/doc.rb', line 4

def graph_deployment(deployment,system_config)
  require 'graph'
  digraph do
    boxes
    graph_details(deployment)
    mkdir_p(File.join(system_config.out_dir,'graphs'),:verbose=>false)
    save File.join(system_config.out_dir,'graphs',deployment.name), "png"
  end#graph
end