class Benchmark::HTTP::Command::Top
Public Instance Methods
call()
click to toggle source
# File lib/benchmark/http/command.rb, line 60 def call if verbose? Async.logger.debug! elsif quiet? Async.logger.warn! else Async.logger.info! end if @options[:version] puts "#{self.name} v#{VERSION}" elsif @options[:help] self.print_usage else @command.call end end
quiet?()
click to toggle source
# File lib/benchmark/http/command.rb, line 56 def quiet? @options[:logging] == :quiet end
verbose?()
click to toggle source
# File lib/benchmark/http/command.rb, line 52 def verbose? @options[:logging] == :verbose end