Sha256: 6917c66638a670602d46a185d5fb52a74f7f2e0e1ac752e90ca97c516e877385

Contents?: true

Size: 1.59 KB

Versions: 36

Compression:

Stored size: 1.59 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.get_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

36 entries across 36 versions & 1 rubygems

Version Path
hybrid_platforms_conductor-33.0.0 bin/topograph
hybrid_platforms_conductor-32.18.0 bin/topograph
hybrid_platforms_conductor-32.17.1 bin/topograph
hybrid_platforms_conductor-32.17.0 bin/topograph
hybrid_platforms_conductor-32.16.4 bin/topograph
hybrid_platforms_conductor-32.16.3 bin/topograph
hybrid_platforms_conductor-32.16.2 bin/topograph
hybrid_platforms_conductor-32.16.1 bin/topograph
hybrid_platforms_conductor-32.16.0 bin/topograph
hybrid_platforms_conductor-32.15.0 bin/topograph
hybrid_platforms_conductor-32.14.0 bin/topograph
hybrid_platforms_conductor-32.13.4 bin/topograph
hybrid_platforms_conductor-32.13.3 bin/topograph
hybrid_platforms_conductor-32.13.2 bin/topograph
hybrid_platforms_conductor-32.13.1 bin/topograph
hybrid_platforms_conductor-32.13.0 bin/topograph
hybrid_platforms_conductor-32.12.0 bin/topograph
hybrid_platforms_conductor-32.11.2 bin/topograph
hybrid_platforms_conductor-32.11.1 bin/topograph
hybrid_platforms_conductor-32.11.0 bin/topograph