Module: Arql::Commands::Reconnect
- Defined in:
- lib/arql/commands/reconnect.rb
Class Method Summary collapse
Class Method Details
.reconnect ⇒ Object
4 5 6 7 |
# 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! ⇒ Object
9 10 11 12 |
# File 'lib/arql/commands/reconnect.rb', line 9 def reconnect! Arql::SSHProxy.reconnect! if Arql::App.config[:ssh].present? ActiveRecord::Base.connection.reconnect! end |