Sha256: 17b858d769d879dd202217787155a2e696d7a25400d46d7658bf89a7c80fc306
Contents?: true
Size: 1.45 KB
Versions: 1
Compression:
Stored size: 1.45 KB
Contents
module Nmapr module Options module Performance def hostgroup(type, value) case type when :min add_argument("--min-hostgroup " << value.to_s) when :max add_argument("--max-hostgroup " << value.to_s) end end def parallelism(type, value) case type when :min add_argument("--min-parallelism " << value.to_s) when :max add_argument("--max-parallelism " << value.to_s) end end def round_trip_timeout(type, value) case type when :min add_argument("--min-rtt-timeout" << value.to_s) when :max add_argument("--max-rtt-timeout " << value.to_s) when :initial add_argument("--initial-rtt-timeout " << value.to_s) end end def delay(type, value) case type when :min add_argument("--scan-delay " << value.to_s) when :max add_argument("--max-scan-delay " << value.to_s) end end def rate(type, value) case type when :min add_argument("--min-rate" << value.to_s) when :max add_argument("--max-rate" << value.to_s) end end def host_timeout(value) add_argument("--max-hostgroup " << value.to_s) end def retries(value) add_argument("--max-retries " << value.to_s) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nmapr-1.0.0 | lib/nmapr/options/performance.rb |