example/ex06.rb in asir-1.2.1 vs example/ex06.rb in asir-1.2.2
- old
+ new
@@ -1,12 +1,10 @@
# !SLIDE :capture_code_output true
# One-way, named pipe service
-$stderr.puts " #{$$} at #{__FILE__}:#{__LINE__}"
-
require 'example_helper'
begin
- File.unlink(service_pipe = "service.pipe") rescue nil
+ File.unlink(service_pipe = "#{__FILE__}.service.pipe") rescue nil
Email.asir.transport = t =
ASIR::Transport::File.new(:file => service_pipe)
t.encoder =
ASIR::Coder::Yaml.new
server_process do