lib/ssh/manager/client.rb in ssh-manager-1.0.6 vs lib/ssh/manager/client.rb in ssh-manager-1.0.7
- old
+ new
@@ -43,10 +43,13 @@
puts 'Connecting to multiple ips..'
cli.new(@options).multiple_connection(@options[:multi])
elsif @options[:transfer_key]
puts 'Transfering key..'
cli.new(@options).transfer_key(@options[:transfer_key])
+ elsif @options[:ping]
+ puts 'Ping Pong..'
+ cli.new(@options).ping(@options[:ping])
elsif @options[:search]
puts 'Searching ..'
cli.new(@options).search_for(@options[:search])
# elsif @options[:settings]
# puts 'Settings'
@@ -66,9 +69,13 @@
@options[:add] = opt
end
@options[:transfer_key] = false
opts.on( '-t', '--transferkey id', 'transfer key to <id>' ) do |opt|
@options[:transfer_key] = opt
+ end
+ @options[:ping] = false
+ opts.on( '-p', '--ping connection id', 'ping connection/)' ) do |opt|
+ @options[:ping] = opt
end
@options[:transfer_file] = false
opts.on( '-r', '--transferfile filename', 'file or dir / connection_ID / dest_path(default is /home/user/)' ) do |opt|
@options[:transfer_file] = opt
end