Sha256: 8f102ceb776f6e62ee3c88530feb0b778668f84a6127c1a151b145554901c8e1

Contents?: true

Size: 385 Bytes

Versions: 2

Compression:

Stored size: 385 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.login
      "Connection successful"
    rescue Net::IMAP::NoResponseError
      "No response"
    rescue StandardError => e
      "Unexpected error: #{e}"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
imap-backup-13.3.0 lib/imap/backup/setup/connection_tester.rb
imap-backup-13.2.0 lib/imap/backup/setup/connection_tester.rb