Sha256: f3bc8504b8f143026742efcf18b96569f1d608db38273d61a9abcf6186664d74

Contents?: true

Size: 967 Bytes

Versions: 5

Compression:

Stored size: 967 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
module Component

# Provides output functionality to the checks via {Arachni::UI::Output},
# prefixing the check name to the output message.
#
# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
module Output
    include UI::Output

    def depersonalize_output
        @depersonalize_output = true
    end

    def depersonalize_output?
        @depersonalize_output
    end

    def intercept_print_message( message )
        if self.class == Class
            fullname = self.fullname
        else
            fullname = self.class.fullname
        end

        depersonalize_output? ? message : "#{fullname}: #{message}"
    end

end
end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-1.6.1.3 lib/arachni/component/output.rb
arachni-1.6.1.2 lib/arachni/component/output.rb
arachni-1.6.1.1 lib/arachni/component/output.rb
arachni-1.6.1 lib/arachni/component/output.rb
arachni-1.6.0 lib/arachni/component/output.rb