lib/rye/box.rb in rye-0.5.3 vs lib/rye/box.rb in rye-0.5.4
- old
+ new
@@ -144,10 +144,11 @@
begin
@ssh = Net::SSH.start(@host, @opts[:user], @opts || {})
rescue Net::SSH::HostKeyMismatch => ex
STDERR.puts ex.message
STDERR.puts "NOTE: EC2 instances generate new SSH keys on first boot."
- if highline.ask("Continue? ").match(/y|yes/i)
+ print "\a" # Ring the bell
+ if highline.ask("Continue? ").strip.match(/\Ay|yes|sure|ya\z/i)
@opts[:paranoid] = false
retry
else
raise Net::SSH::HostKeyMismatch
end