Class: Benchmark::HTTP::Command::Top
- Inherits:
-
Samovar::Command
- Object
- Samovar::Command
- Benchmark::HTTP::Command::Top
- Defined in:
- lib/benchmark/http/command.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/benchmark/http/command.rb', line 58 def call if verbose? Async.logger.debug! elsif quiet? Async.logger.warn! else Async.logger.info! end if [:version] puts "#{self.name} v#{VERSION}" elsif [:help] self.print_usage else @command.call end end |
#quiet? ⇒ Boolean
54 55 56 |
# File 'lib/benchmark/http/command.rb', line 54 def quiet? [:logging] == :quiet end |
#verbose? ⇒ Boolean
50 51 52 |
# File 'lib/benchmark/http/command.rb', line 50 def verbose? [:logging] == :verbose end |