lib/pec2/cli.rb in pec2-0.5.0 vs lib/pec2/cli.rb in pec2-0.5.1

- old
+ new

@@ -38,17 +38,18 @@ if addresses.empty? @logger.info(%Q{no host tag #{options[:tag]}.}) exit end + @logger.info(%Q{connection size #{addresses.size}.}) @logger.info(%Q{listing connection to #{addresses.join(', ')}.}) tf = Tempfile.open("pec2") { |fp| fp.puts(addresses.join("\n")) fp } - pssh = Pssh.new(options, tf.path) + pssh = Pssh.new(options, tf.path, addresses.size) interactive = options[:command] ? false : true if interactive while true