Sha256: fd784a3b4551da783f12bc39d27d672dd49d171ed0c5b6f1ac41b26175254f6f

Contents?: true

Size: 503 Bytes

Versions: 2

Compression:

Stored size: 503 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.4.1 lib/autorespawn/self.rb
autorespawn-0.4.0 lib/autorespawn/self.rb