Sha256: 4c9e8a5c65c3743190ee511bf4912e8a848e1dd00e841d05ec4acabc87a4d4d1

Contents?: true

Size: 326 Bytes

Versions: 23

Compression:

Stored size: 326 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

23 entries across 23 versions & 1 rubygems

Version Path
dispatch-rider-1.9.0 lib/dispatch-rider/handlers/named_process.rb
dispatch-rider-1.8.6 lib/dispatch-rider/handlers/named_process.rb
dispatch-rider-1.8.5 lib/dispatch-rider/handlers/named_process.rb
dispatch-rider-1.8.4 lib/dispatch-rider/handlers/named_process.rb
dispatch-rider-1.8.3 lib/dispatch-rider/handlers/named_process.rb
dispatch-rider-1.8.2 lib/dispatch-rider/handlers/named_process.rb
dispatch-rider-1.8.1 lib/dispatch-rider/handlers/named_process.rb
dispatch-rider-1.8.0 lib/dispatch-rider/handlers/named_process.rb
dispatch-rider-1.7.2 lib/dispatch-rider/handlers/named_process.rb
dispatch-rider-1.7.1 lib/dispatch-rider/handlers/named_process.rb
dispatch-rider-1.7.0 lib/dispatch-rider/handlers/named_process.rb
dispatch-rider-1.6.2 lib/dispatch-rider/handlers/named_process.rb
dispatch-rider-1.6.1 lib/dispatch-rider/handlers/named_process.rb
dispatch-rider-1.6.0 lib/dispatch-rider/handlers/named_process.rb
dispatch-rider-1.5.3 lib/dispatch-rider/handlers/named_process.rb
dispatch-rider-1.5.2 lib/dispatch-rider/handlers/named_process.rb
dispatch-rider-1.5.1 lib/dispatch-rider/handlers/named_process.rb
dispatch-rider-1.5.0 lib/dispatch-rider/handlers/named_process.rb
dispatch-rider-1.4.2 lib/dispatch-rider/handlers/named_process.rb
dispatch-rider-1.4.0 lib/dispatch-rider/handlers/named_process.rb