Sha256: 4df2f973e39466af6981f11f4d8495f8441b375a98aebb5405e45a55d4c7a41a

Contents?: true

Size: 317 Bytes

Versions: 5

Compression:

Stored size: 317 Bytes

Contents

require_relative '../../../lib/arachni'

def framework
    @@framework ||= Arachni::Framework.new
end

def current_module
    @@current_module ||=
        framework.modules[ File.basename( caller.first.split( ':' ).first, '.rb' ) ]
end

def module_name
    File.basename( caller.first.split( ':' ).first, '.rb' )
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-0.4.2 spec/servers/modules/module_server.rb
arachni-0.4.1.3 spec/servers/modules/module_server.rb
arachni-0.4.1.2 spec/servers/modules/module_server.rb
arachni-0.4.1.1 spec/servers/modules/module_server.rb
arachni-0.4.1 spec/servers/modules/module_server.rb