lib/ssh/manager/cli.rb in ssh-manager-1.0.3 vs lib/ssh/manager/cli.rb in ssh-manager-1.0.4
- old
+ new
@@ -33,10 +33,10 @@
end
end
def connect_to(id)
via = DATABASE.get_connection_data[id.to_i-1][-1] =~ /@/
- if via.integer? == false
+ if via.nil?
@ip = DATABASE.get_connection_data[id.to_i-1][0]
@user = DATABASE.get_connection_data[id.to_i-1][1]
check_term(@ip, @user)
else
@ip = DATABASE.get_connection_data[id.to_i-1][0]