lib/benchmark/http/command.rb in benchmark-http-0.16.1 vs lib/benchmark/http/command.rb in benchmark-http-0.18.0

- old
+ new

@@ -1,19 +1,19 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2018-2022, by Samuel Williams. +# Copyright, 2018-2024, by Samuel Williams. -require_relative 'command/latency' -require_relative 'command/concurrency' -require_relative 'command/spider' -require_relative 'command/hammer' -require_relative 'command/wait' +require_relative "command/latency" +require_relative "command/concurrency" +require_relative "command/spider" +require_relative "command/hammer" +require_relative "command/wait" -require_relative 'version' -require 'samovar' -require 'console' +require_relative "version" +require "samovar" +require "console" module Benchmark module HTTP module Command def self.call(*args) @@ -22,20 +22,20 @@ class Top < Samovar::Command self.description = "An asynchronous HTTP server benchmark." options do - option '--verbose | --quiet', "Verbosity of output for debugging.", key: :logging - option '-h/--help', "Print out help information." - option '-v/--version', "Print out the application version." + option "--verbose | --quiet", "Verbosity of output for debugging.", key: :logging + option "-h/--help", "Print out help information." + option "-v/--version", "Print out the application version." end nested :command, { - 'latency' => Latency, - 'concurrency' => Concurrency, - 'spider' => Spider, - 'hammer' => Hammer, - 'wait' => Wait, + "latency" => Latency, + "concurrency" => Concurrency, + "spider" => Spider, + "hammer" => Hammer, + "wait" => Wait, } def verbose? @options[:logging] == :verbose end