Sha256: 437f1a6f2152d601f7c105ac2cf777a894f00c74da17f3bb7f4b394a8a877bc5

Contents?: true

Size: 1.02 KB

Versions: 6

Compression:

Stored size: 1.02 KB

Contents

=begin
    Copyright 2010-2015 Tasos Laskos <tasos.laskos@arachni-scanner.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

require 'forwardable'

module Arachni
module Element::Capabilities
module WithAuditor

# Delegate output related methods to the {WithAuditor#auditor}.
module Output
    extend ::Forwardable

    [ :debug?, :print_error, :print_status, :print_verbose, :print_info,
      :print_line, :print_ok, :print_bad, :print_debug, :print_debug_backtrace,
      :print_error_backtrace, :print_debug_level_1, :print_debug_level_2,
      :print_debug_level_3, :debug_level_1?, :debug_level_2?, :debug_level_3?,
      :print_exception ].each do |method|
        def_delegator :auditor, :with_browser_cluster
        define_method method do |*args|
            return if orphan?
            auditor.send( method, *args )
        end
    end

end

end
end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
arachni-1.3.2 lib/arachni/element/capabilities/with_auditor/output.rb
arachni-1.3.1 lib/arachni/element/capabilities/with_auditor/output.rb
arachni-1.3 lib/arachni/element/capabilities/with_auditor/output.rb
arachni-1.2.1 lib/arachni/element/capabilities/with_auditor/output.rb
arachni-1.2 lib/arachni/element/capabilities/with_auditor/output.rb
arachni-1.1 lib/arachni/element/capabilities/with_auditor/output.rb