Sha256: e7b0ef93529bfddd0425e58a460d1f380c9681d18a4009ca5f7ac29820149cd9
Contents?: true
Size: 737 Bytes
Versions: 31
Compression:
Stored size: 737 Bytes
Contents
#!/usr/bin/env ruby require 'hybrid_platforms_conductor/executable' test_node = nil executable = HybridPlatformsConductor::Executable.new( check_options: false, nodes_selection_options: false, parallel_options: false ) do |opts| opts.on('-n', '--node NODE', 'Run the command on a specific node.') do |node| test_node = node end end nodes_handler = executable.nodes_handler deployer = executable.deployer executable.parse_options! raise 'No node selected. Please use --node option to set at least one.' if test_node.nil? || test_node.empty? raise "Unknown node: #{test_node}" unless nodes_handler.known_nodes.include?(test_node) # Make sure we always use why-run deployer.use_why_run = true deployer.deploy_on(test_node)
Version data entries
31 entries across 31 versions & 1 rubygems