Sha256: 44b96c2753d5c48f47f0ca91ee57257ea9ee08bc61264935b21f33db8aa64fb3

Contents?: true

Size: 506 Bytes

Versions: 2

Compression:

Stored size: 506 Bytes

Contents

class Autorespawn
    # A Slave-compatible object that represents the manager's process itself
    class Self < Slave
        def initialize(*args, **options)
            super

            @pid = Process.pid
        end

        def needed?(*); false end
        def needed!; end
        def spawn
            pid
        end
        def kill(*, **)
        end
        def join
        end
        def running?
            true
        end
        def finished?
            false
        end
    end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
autorespawn-0.5.1 lib/autorespawn/self.rb
autorespawn-0.5.0 lib/autorespawn/self.rb