Sha256: de55039053ccd0ec470375fe318bb37fe6f379f2cc7d6f9f8bdfd490774f40cb

Contents?: true

Size: 431 Bytes

Versions: 6

Compression:

Stored size: 431 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")
  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

6 entries across 6 versions & 1 rubygems

Version Path
asir_beanstalk-1.2.3 example/asir_control_client_beanstalk.rb
asir_beanstalk-1.2.0 example/asir_control_client_beanstalk.rb
asir_beanstalk-1.1.5 example/asir_control_client_beanstalk.rb
asir_beanstalk-1.1.4 example/asir_control_client_beanstalk.rb
asir_beanstalk-1.1.3 example/asir_control_client_beanstalk.rb
asir_beanstalk-1.1.2 example/asir_control_client_beanstalk.rb