Sha256: 9d9064eb50c606995f835e2af20907538ad79531748c8409cbb6bcb5351e046e

Contents?: true

Size: 436 Bytes

Versions: 4

Compression:

Stored size: 436 Bytes

Contents

require 'example_helper'
require 'asir/transport/beanstalk'
require 'asir/coder/marshal'
begin
  Email.asir.transport = t =
    ASIR::Transport::Beanstalk.new(:uri => "tcp://localhost:31001/test0")
  t.one_way = true
  t.encoder = ASIR::Coder::Marshal.new
  pr Email.asir.send_email(:pdf_invoice,
                             :to => "user@email.com",
                             :customer => @customer)
ensure
  t.close rescue nil
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
asir_beanstalk-1.2.8 example/asir_control_client_beanstalk.rb
asir_beanstalk-1.2.7 example/asir_control_client_beanstalk.rb
asir_beanstalk-1.2.6 example/asir_control_client_beanstalk.rb
asir_beanstalk-1.2.5 example/asir_control_client_beanstalk.rb