lib/ssh/manager/cli.rb in ssh-manager-1.1.4 vs lib/ssh/manager/cli.rb in ssh-manager-1.1.5
- old
+ new
@@ -264,9 +264,12 @@
ids = @cons.map {|x| x[:id].to_s}
input = input.chomp.gsub(/\s+\Z/, "")
case input
when 'execute_command'
# which commands
+ print "command: "
+ input = STDIN.gets.chomp
+ ids.unshift(input)
self.execute_command(ids)
exit
when 'connect'
self.connect_to(ids)
exit