summaryrefslogtreecommitdiff
path: root/bin/multi-ping
AgeCommit message (Collapse)Author
2017-08-10Significant rubocop fixups.Steve Kemp
This merge-request contains almost entirely mechanical changes, with a few exceptions: * I changed `do_ipv4` and `do_ipv6` to `ipv4` and `ipv6` respectively. * This fixed a warning about normal-casing. * I changed a test-case to compare against both `Integer` and `Fixnum` * Suspect this is a ruby-versionism. The tests continue to pass, so I believe this is safe to merge, but of course it is still not 100%: lib/custodian/queue.rb:135:21: W: Assignment in condition - you probably meant to use ==. added = true ^ lib/custodian/protocoltest/ssl.rb:218:5: W: Do not shadow rescued Exceptions rescue OpenSSL::SSL::SSLError => err ... ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lib/custodian/protocoltest/ssl.rb:286:5: W: Do not shadow rescued Exceptions rescue OpenSSL::SSL::SSLError => err ... ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lib/custodian/protocoltest/http.rb:307:7: C: Assignment Branch Condition size for run_test is too high. [84.53/72] def run_test ^^^ lib/custodian/protocoltest/http.rb:307:7: C: Cyclomatic complexity for run_test is too high. [22/19] def run_test ^^^ lib/custodian/protocoltest/http.rb:307:7: C: Method has too many lines. [97/87] def run_test ... ^^^^^^^^^^^^ lib/custodian/protocoltest/http.rb:307:7: C: Perceived complexity for run_test is too high. [23/21] def run_test In short this takes care of _most_ of the warnings, but updates requiring significant code-change have not been applied.
2016-04-22Updated to fix rubocop warnings.Steve Kemp
2015-03-09Moved usage-information to foot of script.Steve Kemp
This removes the nasty self-parsing of the script to generate the help/manual output. I've also removed global-variables and made the code almost-100% warning free.
2015-03-09Remove spaces inside blocks.Steve Kemp
2015-03-09More minor space fixupsSteve Kemp
2015-03-09Removed spaces inside parenthesis.Steve Kemp
2015-03-09Don't use parenthesis aroudn conditions in an if.Steve Kemp
2015-03-09Do not use parentheses for method calls with no arguments.Steve Kemp
This is neater. Flagged by rubocop
2015-03-09Use long-namesSteve Kemp
Instead of "$0" use $PROGRAM_NAME, instead of $! use "$LOAD_PATH". This is more explicit and less-magic. Flagged by rubocop
2015-01-13Avoid hard-wiring 1.8 rubySteve Kemp
2012-12-06 Change hostname1 -> hostname in the doc since we only allow one host to be ↵Steve Kemp
pinged.
2012-11-22 Renamed.Steve Kemp
2012-11-20 Updated case statements for ruby1.9Steve Kemp
2012-11-14 whitespace fixupsSteve Kemp
2012-11-14 Split the implementation of the multi-ping tool into a library and a driver.Steve Kemp
2012-11-14 Updated comment.Steve Kemp
2012-11-13 Use ruby1.8 explicitlySteve Kemp
2012-11-13 Renamed and moved files around.Steve Kemp