lib/meroku/tunnelable.rb in meroku-2.0.21 vs lib/meroku/tunnelable.rb in meroku-2.0.22
- old
+ new
@@ -4,16 +4,16 @@
# rubocop:disable Metrics/AbcSize,Metrics/MethodLength
def tunnel_run(cmd)
retries = 0
begin
code = nil
- puts "DB8 tunnel_ip #{@tunnel_ip}"
- puts "DB8 @tunnel_username #{@tunnel_username}"
- puts "DB8 @tunnel_key_name #{@tunnel_key_name}"
- puts "DB8 #{`ls -la ~/.meroku/`}"
+ #puts "DB8 tunnel_ip #{@tunnel_ip}"
+ #puts "DB8 @tunnel_username #{@tunnel_username}"
+ #puts "DB8 @tunnel_key_name #{@tunnel_key_name}"
+ #puts "DB8 #{`ls -la ~/.meroku/`}"
Net::SSH.start(@tunnel_ip,
@tunnel_username,
- keys: @tunnel_key_name,
+ keys: [ @tunnel_key_name ],
verify_host_key: false) do |ssh|
ssh.open_channel do |channel|
puts cmd
channel.exec cmd do |ch, success|
raise "could not execute command" unless success