Module: Arachni::Framework::Parts::Platform
- Included in:
- Arachni::Framework
- Defined in:
- lib/arachni/framework/parts/platform.rb
Overview
Provides access to Platform helpers.
Instance Method Summary collapse
-
#list_platforms ⇒ Array<Hash>
Information about all available platforms.
Instance Method Details
#list_platforms ⇒ Array<Hash>
Returns 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 |