module Arachni::Rest::Server::InstanceHelpers
Public Instance Methods
exists?( id )
click to toggle source
# File lib/arachni/rest/server/instance_helpers.rb, line 34 def exists?( id ) instances.include? id end
instances()
click to toggle source
# File lib/arachni/rest/server/instance_helpers.rb, line 17 def instances @@instances end
kill_instance( id )
click to toggle source
# File lib/arachni/rest/server/instance_helpers.rb, line 38 def kill_instance( id ) Processes::Instances.kill( instances[id].url ) end
scan_for( id )
click to toggle source
# File lib/arachni/rest/server/instance_helpers.rb, line 21 def scan_for( id ) @@instances[id].service rescue => e instances.delete( id ).close session.delete id halt 500, json( error: "#{e.class}: #{e}", backtrace: e.backtrace ) end