Sha256: 97db6288aa1aecb56d0182c0b8c2c48f21a15b293dd1a91b946a1e8f3340d39f
Contents?: true
Size: 1.11 KB
Versions: 2
Compression:
Stored size: 1.11 KB
Contents
=begin Copyright 2010-2017 Sarosys LLC <http://www.sarosys.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 def_delegator :auditor, :with_browser_cluster [ :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, :print_debug_level_4, :print_debug_level_5, :debug_level_1?, :debug_level_2?, :debug_level_3?, :debug_level_4?, :debug_level_5?, :print_exception, :print_debug_exception ].each do |method| define_method method do |*args| (orphan? ? UI::Output : auditor).send( method, *args ) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
arachni-1.5.1 | lib/arachni/element/capabilities/with_auditor/output.rb |
arachni-1.5 | lib/arachni/element/capabilities/with_auditor/output.rb |