module Arql::Commands::Reconnect
Public Class Methods
reconnect()
click to toggle source
# File lib/arql/commands/reconnect.rb, line 4 def reconnect Arql::SSHProxy.reconnect if Arql::App.config[:ssh].present? ActiveRecord::Base.connection.reconnect! unless ActiveRecord::Base.connection.active? end
reconnect!()
click to toggle source
# File lib/arql/commands/reconnect.rb, line 9 def reconnect! Arql::SSHProxy.reconnect! if Arql::App.config[:ssh].present? ActiveRecord::Base.connection.reconnect! end