Sha256: 80a5ebf27508cd0d00abc5bfda9ee9641202f2099693c6117f6a7633dc7e1553
Contents?: true
Size: 1.26 KB
Versions: 5
Compression:
Stored size: 1.26 KB
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 # Beeps when the scan finishes. # # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> # @version 0.1.2 class Arachni::Plugins::BeepNotify < Arachni::Plugin::Base def run wait_while_framework_running options[:repeat].times do sleep options[:interval] print_info 'Beep!' print 7.chr end end def self.info { name: 'Beep notify', description: %q{It beeps when the scan finishes.}, author: 'Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>', version: '0.1.2', options: [ Options::Int.new( 'repeat', description: 'How many times to beep.', default: 4 ), Options::Float.new( 'interval', description: 'How long to wait between beeps.', default: 0.4 ) ] } end end
Version data entries
5 entries across 5 versions & 1 rubygems