Sha256: 79d9dde34e86f63f56d9cc9267558ff5304a7fa45402599dd59b12e4f4893e6f

Contents?: true

Size: 1.58 KB

Versions: 31

Compression:

Stored size: 1.58 KB

Contents

#!/usr/bin/env ruby
require 'hybrid_platforms_conductor/executable'

executable = HybridPlatformsConductor::Executable.new(
  check_options: false,
  nodes_selection_options: false,
  parallel_options: false
)
nodes_handler = executable.nodes_handler
deployer = executable.deployer
deployer.timeout = 30
deployer.concurrent_execution = true
deployer.use_why_run = true
topographer = executable.topographer

executable.parse_options!

# Initialize the topograph
from_nodes, to_nodes = topographer.resolve_from_to
topographer.json_files

# The list of clusters to group nodes into 1 graphviz node to simplify the graph.
known_nodes_lists = nodes_handler.known_nodes_lists

executable.section 'Compute graph' do
  topographer.graph_for(nodes_handler.known_nodes)
end
executable.section 'Add nodes lists clusters' do
  topographer.graph_for_nodes_lists(known_nodes_lists)
end
executable.section 'Define IP 24 clusters' do
  topographer.define_clusters_ip_24
end
nodes = nil
executable.section 'Select path' do
  from_nodes = topographer.children_nodes(from_nodes)
  to_nodes = topographer.ancestor_nodes(to_nodes)
  nodes = from_nodes & to_nodes
end
executable.section "Filter only nodes #{nodes.sort.join(', ')}" do
  topographer.filter_in_nodes(nodes + topographer.cluster_nodes)
end
executable.section 'Collapse nodes lists' do
  topographer.collapse_nodes(known_nodes_lists)
end
executable.section 'Remove self references' do
  topographer.remove_self_connections
end
executable.section 'Remove empty clusters' do
  topographer.remove_empty_clusters
end
executable.section 'Write outputs' do
  topographer.dump_outputs
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
hybrid_platforms_conductor-33.9.5 bin/topograph
hybrid_platforms_conductor-33.9.4 bin/topograph
hybrid_platforms_conductor-33.9.2 bin/topograph
hybrid_platforms_conductor-33.9.1 bin/topograph
hybrid_platforms_conductor-33.9.0 bin/topograph
hybrid_platforms_conductor-33.8.4 bin/topograph
hybrid_platforms_conductor-33.8.3 bin/topograph
hybrid_platforms_conductor-33.8.2 bin/topograph
hybrid_platforms_conductor-33.8.1 bin/topograph
hybrid_platforms_conductor-33.8.0 bin/topograph
hybrid_platforms_conductor-33.7.4 bin/topograph
hybrid_platforms_conductor-33.7.3 bin/topograph
hybrid_platforms_conductor-33.7.2 bin/topograph
hybrid_platforms_conductor-33.7.1 bin/topograph
hybrid_platforms_conductor-33.7.0 bin/topograph
hybrid_platforms_conductor-33.6.0 bin/topograph
hybrid_platforms_conductor-33.5.1 bin/topograph
hybrid_platforms_conductor-33.5.0 bin/topograph
hybrid_platforms_conductor-33.4.0 bin/topograph
hybrid_platforms_conductor-33.3.0 bin/topograph