Sha256: debcbd7a4a2f966127e34a3e369add9d6737084262799a6ce9546a207c011c4b

Contents?: true

Size: 908 Bytes

Versions: 5

Compression:

Stored size: 908 Bytes

Contents

=begin
    Copyright 2010-2022 Ecsypno <http://www.ecsypno.com>

    This file is part of the Arachni Framework project and is subject to
    redistribution and commercial restrictions. Please see the Arachni Framework
    web site for more information on licensing and terms of use.
=end

module Arachni
class Framework
module Parts

# Provides access to {Arachni::Platform} helpers.
#
# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
module Platform

    # @return    [Array<Hash>]
    #   Information about all available platforms.
    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

end

end
end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-1.6.1.3 lib/arachni/framework/parts/platform.rb
arachni-1.6.1.2 lib/arachni/framework/parts/platform.rb
arachni-1.6.1.1 lib/arachni/framework/parts/platform.rb
arachni-1.6.1 lib/arachni/framework/parts/platform.rb
arachni-1.6.0 lib/arachni/framework/parts/platform.rb