Sha256: 79dd00a80ba70603f2811e0b05eb8b6943bc6eea7621fb5af0b560315c3fab70

Contents?: true

Size: 237 Bytes

Versions: 8

Compression:

Stored size: 237 Bytes

Contents

module Arql::Commands
  module Reconnect
    class << self
      def reconnect
        ActiveRecord::Base.connection.reconnect!
      end
    end

    Pry.commands.block_command 'reconnect' do
      Reconnect.reconnect
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
arql-0.1.22 lib/arql/commands/reconnect.rb
arql-0.1.21 lib/arql/commands/reconnect.rb
arql-0.1.20 lib/arql/commands/reconnect.rb
arql-0.1.19 lib/arql/commands/reconnect.rb
arql-0.1.18 lib/arql/commands/reconnect.rb
arql-0.1.17 lib/arql/commands/reconnect.rb
arql-0.1.16 lib/arql/commands/reconnect.rb
arql-0.1.15 lib/arql/commands/reconnect.rb