Sha256: 00d53c5e119c61c462d0321d0718c5c4cf2faa689ece1ac70eefb8ea242d6f54

Contents?: true

Size: 1.25 KB

Versions: 5

Compression:

Stored size: 1.25 KB

Contents

=begin
                  Arachni
  Copyright (c) 2010-2011 Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>

  This is free software; you can copy and distribute and modify
  this program under the term of the GPL v2.0 License
  (See LICENSE file for details)

=end

module Arachni
module Reports

#
# Awesome prints an {AuditStore#to_h} hash.
#
# @author: Tasos "Zapotek" Laskos
#                                      <tasos.laskos@gmail.com>
#                                      <zapotek@segfault.gr>
# @version: 0.1
#
class AP < Arachni::Report::Base

    #
    # @param [AuditStore]  audit_store
    # @param [Hash]   options    options passed to the report
    # @param [String]    outfile    where to save the report
    #
    def initialize( audit_store, options )
        @audit_store   = audit_store
    end

    def run( )

        print_line( )
        print_status( 'Awesome printing AuditStore as a Hash...' )

        ap @audit_store.to_h

        print_status( 'Done!' )
    end

    def self.info
        {
            :name           => 'AP',
            :description    => %q{Awesome prints an AuditStore hash.},
            :author         => 'Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>',
            :version        => '0.1'
        }
    end

end

end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-0.3 reports/ap.rb
arachni-0.2.4 reports/ap.rb
arachni-0.2.3 reports/ap.rb
arachni-0.2.2.2 reports/ap.rb
arachni-0.2.2.1 reports/ap.rb