Module: DispatchRider::Handlers::NamedProcess

Included in:
Base
Defined in:
lib/dispatch-rider/handlers/named_process.rb

Instance Method Summary collapse

Instance Method Details

#with_named_process(message) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/dispatch-rider/handlers/named_process.rb', line 5

def with_named_process(message)
  original_program_name = $0
  begin
    $0 += " - #{message.subject} (#{message.body['guid']})"
    yield
  ensure
    $0 = original_program_name
  end
end