module DispatchRider::Handlers::NamedProcess

Public Instance Methods

with_named_process(message) { || ... } click to toggle source
# File lib/dispatch-rider/handlers/named_process.rb, line 6
def with_named_process(message)
  original_program_name = $0
  begin
    $0 += " - #{message.subject} (#{message.body['guid']})"
    yield
  ensure
    $0 = original_program_name
  end
end