Sha256: 55760c3c0af2e9e25bab328791e69a393bd6792c9d2b0ac0ae6a0142da74dab3

Contents?: true

Size: 364 Bytes

Versions: 12

Compression:

Stored size: 364 Bytes

Contents

# encoding: utf-8

module Imap::Backup
  module Configuration; end

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
imap-backup-1.2.2 lib/imap/backup/configuration/connection_tester.rb
imap-backup-1.2.1 lib/imap/backup/configuration/connection_tester.rb
imap-backup-1.2.0 lib/imap/backup/configuration/connection_tester.rb
imap-backup-1.1.0 lib/imap/backup/configuration/connection_tester.rb
imap-backup-1.0.17 lib/imap/backup/configuration/connection_tester.rb
imap-backup-1.0.16 lib/imap/backup/configuration/connection_tester.rb
imap-backup-1.0.15 lib/imap/backup/configuration/connection_tester.rb
imap-backup-1.0.14 lib/imap/backup/configuration/connection_tester.rb
imap-backup-1.0.13 lib/imap/backup/configuration/connection_tester.rb
imap-backup-1.0.12 lib/imap/backup/configuration/connection_tester.rb
imap-backup-1.0.11 lib/imap/backup/configuration/connection_tester.rb
imap-backup-1.0.10 lib/imap/backup/configuration/connection_tester.rb