Sha256: 17ec83736dd4b073e6387c480e02c54f8cd4b2fc9d5853659f0b3826451af69f

Contents?: true

Size: 328 Bytes

Versions: 23

Compression:

Stored size: 328 Bytes

Contents

module Imap::Backup
  module Configuration; end

  module Configuration::ConnectionTester
    def self.test(account)
      Account::Connection.new(account).imap
      "Connection successful"
    rescue Net::IMAP::NoResponseError
      "No response"
    rescue StandardError => e
      "Unexpected error: #{e}"
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
imap-backup-2.2.0 lib/imap/backup/configuration/connection_tester.rb
imap-backup-2.1.1 lib/imap/backup/configuration/connection_tester.rb
imap-backup-2.1.0 lib/imap/backup/configuration/connection_tester.rb