summaryrefslogtreecommitdiff
path: root/bin/multi-ping
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2016-04-22 21:23:32 +0300
committerSteve Kemp <steve@steve.org.uk>2016-04-22 21:23:32 +0300
commitfdb5aa7bb41c9a11a2dfdcdb12f00f95f37e2072 (patch)
tree107279e870e96c884490dbeab9be3bda93429155 /bin/multi-ping
parent95a1fa2355f2b6352f1929122815504f98f4b4de (diff)
Updated to fix rubocop warnings.
Diffstat (limited to 'bin/multi-ping')
-rwxr-xr-xbin/multi-ping4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/multi-ping b/bin/multi-ping
index 7957565..6d905bb 100755
--- a/bin/multi-ping
+++ b/bin/multi-ping
@@ -49,7 +49,7 @@ hostname = ARGV.shift
#
# Abort if we don't have a hostname
#
-if hostname.nil?
+if hostname.nil?
puts "Usage: #{$PROGRAM_NAME} hostname"
exit 1
end
@@ -62,7 +62,7 @@ helper = Custodian::Util::Ping.new(hostname)
#
# Ping the host, via the helper
#
-if helper.run_ping
+if helper.run_ping
puts "#{hostname} - #{helper.address} - is alive."
exit 0
else