Sha256: f7eb2f24eb4c50e9bb5f80da543bff454de9c7e912d7d4f1bbba82c264c529dc
Contents?: true
Size: 900 Bytes
Versions: 15
Compression:
Stored size: 900 Bytes
Contents
# !SLIDE :capture_code_output true # One-way, file log service require 'example_helper' begin File.unlink(service_log = "#{__FILE__}.service.log") rescue nil Email.asir.transport = t = ASIR::Transport::File.new(:file => service_log) t.encoder = ASIR::Coder::Yaml.new pr Email.asir.send_email(:pdf_invoice, :to => "user@email.com", :customer => @customer) ensure t.close puts "\x1a\n#{service_log.inspect} contents:" puts File.read(service_log) end # !SLIDE END # EXPECT: : client process # EXPECT: service.log" contents: # EXPECT: pr: nil # EXPECT: --- !ruby/object:ASIR::Message # EXPECT: --- !ruby/object:ASIR::Message # EXPECT: arguments: # EXPECT: - :pdf_invoice # EXPECT: :to: user@email.com # EXPECT: :customer: 123 # EXPECT: receiver: Email # EXPECT: receiver_class: Module # EXPECT: selector: :send_email
Version data entries
15 entries across 15 versions & 1 rubygems