Module: Arachni::Framework::Parts::Platform

Included in:
Arachni::Framework
Defined in:
lib/arachni/framework/parts/platform.rb

Overview

Provides access to Platform helpers.

Author:

Instance Method Summary collapse

Instance Method Details

#list_platformsArray<Hash>

Returns Information about all available platforms.

Returns:

  • (Array<Hash>)

    Information about all available platforms.


20
21
22
23
24
25
26
27
28
# File 'lib/arachni/framework/parts/platform.rb', line 20

def list_platforms
    platforms = Arachni::Platform::Manager.new
    platforms.valid.inject({}) do |h, platform|
        type = Arachni::Platform::Manager::TYPES[platforms.find_type( platform )]
        h[type] ||= {}
        h[type][platform] = platforms.fullname( platform )
        h
    end
end