lib/spider-gazelle.rb
def launch_spider(args)
            require 'securerandom'

            @password ||= SecureRandom.hex

            #cmd = "#{EXEC_NAME} -s #{@password} #{Shellwords.join(args)}"

            thread = Reactor.instance.thread
            spider = thread.spawn(EXEC_NAME, args: (['-s', @password] + args), mode: :inherit)
            spider.finally do
                signaller = ::SpiderGazelle::Signaller.instance
                signaller.panic!('Unexpected spider exit') unless signaller.shutting_down
            end
        end
def launch_spider(args)
            require 'securerandom'

            @password ||= SecureRandom.hex

            #cmd = "#{EXEC_NAME} -s #{@password} #{Shellwords.join(args)}"

            thread = Reactor.instance.thread
            spider = thread.spawn(EXEC_NAME, args: (['-s', @password] + args), mode: :inherit)
            spider.finally do
                signaller = ::SpiderGazelle::Signaller.instance
                signaller.panic!('Unexpected spider exit') unless signaller.shutting_down
            end
        end
def launch_spider ( args ) require 'securerandom' @password ||= SecureRandom . hex #cmd = "#{EXEC_NAME} -s #{@password} #{Shellwords.join(args)}" thread = Reactor . instance . thread spider = thread . spawn ( EXEC_NAME , args : ( [ '-s' , @password ] + args ) , mode : :inherit ) spider . finally do signaller = :: SpiderGazelle :: Signaller . instance signaller . panic! ( 'Unexpected spider exit' ) unless signaller . shutting_down end end
---------------------------------------
 SPIDER LAUNCH CONTROL
 ---------------------------------------
--------------------------------------- SPIDER LAUNCH CONTROL ---------------------------------------