diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:21:36 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:21:36 +0000 |
commit | 0c2d64d6daf9a9a901a3b67730680e3e97c60f8d (patch) | |
tree | 623a1932c32dcf6cbac9254334690db82ac3816e /lib/custodian/protocoltest/dns.rb | |
parent | 6d95fd2e13f23037bbae89b5627caf53aa346e73 (diff) |
Whitespace fixups.
These were all identified and suggested by rubocop.
Diffstat (limited to 'lib/custodian/protocoltest/dns.rb')
-rw-r--r-- | lib/custodian/protocoltest/dns.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/custodian/protocoltest/dns.rb b/lib/custodian/protocoltest/dns.rb index add4a87..c65f90a 100644 --- a/lib/custodian/protocoltest/dns.rb +++ b/lib/custodian/protocoltest/dns.rb @@ -64,10 +64,10 @@ module Custodian # # Ensure we had all the data. # - raise ArgumentError, 'Missing host to resolve' unless(@resolve_name) - raise ArgumentError, 'Missing type of record to lookup' unless(@resolve_type) - raise ArgumentError, 'Missing expected results' unless(@resolve_expected) - raise ArgumentError, "Uknown record type: #{@resolve_type}" unless(@resolve_type =~ /^(A|NS|MX|AAAA)$/) + raise ArgumentError, 'Missing host to resolve' unless @resolve_name + raise ArgumentError, 'Missing type of record to lookup' unless @resolve_type + raise ArgumentError, 'Missing expected results' unless @resolve_expected + raise ArgumentError, "Uknown record type: #{@resolve_type}" unless @resolve_type =~ /^(A|NS|MX|AAAA)$/ # # The host to query against @@ -143,7 +143,7 @@ module Custodian return nil end - Resolv::DNS.open(:nameserver=>[@server_ip]) do |dns| + Resolv::DNS.open(:nameserver => [@server_ip]) do |dns| case ltype when /^A$/ then |