diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:19:15 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:19:15 +0000 |
commit | a22b8e96ead33b0f97ed5243dbad7f7b6cd5135d (patch) | |
tree | 3fe30365cc9d793c752653a59614b52009ef9336 /lib/custodian/util/ping.rb | |
parent | 7782df6020704f51ee2d6194d8d3b74f28a53401 (diff) |
Prefer single-quotes when you don't need interpolation.
So "foo" is less good than 'foo'.
Diffstat (limited to 'lib/custodian/util/ping.rb')
-rw-r--r-- | lib/custodian/util/ping.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/custodian/util/ping.rb b/lib/custodian/util/ping.rb index 771cfd6..cf79754 100644 --- a/lib/custodian/util/ping.rb +++ b/lib/custodian/util/ping.rb @@ -26,8 +26,8 @@ module Custodian # def initialize( hostname ) - raise ArgumentError, "Hostname must not be nil" if hostname.nil? - raise ArgumentError, "Hostname must be a String" unless hostname.kind_of?( String ) + raise ArgumentError, 'Hostname must not be nil' if hostname.nil? + raise ArgumentError, 'Hostname must be a String' unless hostname.kind_of?( String ) @hostname = hostname @resolved = Custodian::Util::DNS.hostname_to_ip( hostname ) @@ -83,7 +83,7 @@ module Custodian return true end else - puts "ERROR: Resolved to neither an IPv6 or IPv4 address." + puts 'ERROR: Resolved to neither an IPv6 or IPv4 address.' end false end |