Sha256: 1acc3950939dceb2b843614afd6c1907ea29476da16642588cbff3b425db4c7d

Contents?: true

Size: 324 Bytes

Versions: 2

Compression:

Stored size: 324 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dispatch-rider-2.1.0 lib/dispatch-rider/handlers/named_process.rb
dispatch-rider-2.0.0 lib/dispatch-rider/handlers/named_process.rb