Sha256: b56788a499fa67ee0a306130f7869fb3f8ee19a2283db1223a1f535b3bac4b44

Contents?: true

Size: 358 Bytes

Versions: 12

Compression:

Stored size: 358 Bytes

Contents

module Houston

  def self.deliver!(message)
    Houston.try({max_tries: 3},
                Errno::ECONNRESET,
                Errno::EPIPE,
                Errno::ETIMEDOUT,
                Net::OpenTimeout,
                Net::ReadTimeout,
                Net::SMTPServerBusy,
                EOFError) do
        message.deliver_now!
    end
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
houston-core-0.9.2 config/initializers/houston_deliver.rb
houston-core-0.9.1 config/initializers/houston_deliver.rb
houston-core-0.9.0 config/initializers/houston_deliver.rb
houston-core-0.9.0.rc1 config/initializers/houston_deliver.rb
houston-core-0.8.4 config/initializers/houston_deliver.rb
houston-core-0.8.3 config/initializers/houston_deliver.rb
houston-core-0.8.2 config/initializers/houston_deliver.rb
houston-core-0.8.1 config/initializers/houston_deliver.rb
houston-core-0.8.0 config/initializers/houston_deliver.rb
houston-core-0.8.0.pre2 config/initializers/houston_deliver.rb
houston-core-0.8.0.pre config/initializers/houston_deliver.rb
houston-core-0.7.0 config/initializers/houston_deliver.rb