Top Level Namespace
Defined Under Namespace
Modules: AwsSecurityViz, Ec2, Json, Renderer
Classes: AwsConfig, CidrGroupMapping, ColorPicker, DebugGraph, Ec2Provider, Exclusions, Graph, GraphFilter, IpPermission, JsonProvider, SecurityGroup, SecurityGroups, Traffic, VisualizeAws
Instance Method Summary
collapse
Instance Method Details
#debug ⇒ Object
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/debug/parse_log.rb', line 11
def debug
g = Graph.new
File.readlines('debug-output.log').map do |l|
type, left, right = l.split(/\W+/)
if type=="node"
g.add_node(h(left), {})
elsif type=="edge"
g.add_edge(h(left), h(right), {})
end
end
g.output(:svg => 'test.svg', :use => 'sfdp')
end
|
#h(s) ⇒ Object
6
7
8
|
# File 'lib/debug/parse_log.rb', line 6
def h(s)
@oh.hash(s)
end
|