Sha256: 7875d0dc9bc6ffc80527dc44b5f9ac66fa0b67a4008320ce8f17b4bd2d4862fe

Contents?: true

Size: 379 Bytes

Versions: 10

Compression:

Stored size: 379 Bytes

Contents

module Imap; end

module Imap::Backup
  class Setup; end

  class Setup::ConnectionTester
    attr_reader :account

    def initialize(account)
      @account = account
    end

    def test
      account.client
      "Connection successful"
    rescue Net::IMAP::NoResponseError
      "No response"
    rescue StandardError => e
      "Unexpected error: #{e}"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
imap-backup-13.1.0 lib/imap/backup/setup/connection_tester.rb
imap-backup-13.0.0 lib/imap/backup/setup/connection_tester.rb
imap-backup-12.1.0 lib/imap/backup/setup/connection_tester.rb
imap-backup-12.0.0 lib/imap/backup/setup/connection_tester.rb
imap-backup-11.1.0 lib/imap/backup/setup/connection_tester.rb
imap-backup-11.1.0.rc1 lib/imap/backup/setup/connection_tester.rb
imap-backup-11.0.1 lib/imap/backup/setup/connection_tester.rb
imap-backup-11.0.0 lib/imap/backup/setup/connection_tester.rb
imap-backup-11.0.0.rc1 lib/imap/backup/setup/connection_tester.rb
imap-backup-10.0.1 lib/imap/backup/setup/connection_tester.rb