summaryrefslogtreecommitdiff
path: root/lib/custodian/util/tftp.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2016-04-22 21:48:59 +0300
committerSteve Kemp <steve@steve.org.uk>2016-04-22 21:48:59 +0300
commit67fbf68705e1808107e8cea1d3ab6ad0e206f645 (patch)
treee9488cc105876485822be15c29c97ee66bd964ca /lib/custodian/util/tftp.rb
parent12de7cf1aefcd5d567a9e6e2eaa061f2074c8dbb (diff)
Fixed up more rubocop warnings.
Again these were whitespace-related.
Diffstat (limited to 'lib/custodian/util/tftp.rb')
-rw-r--r--lib/custodian/util/tftp.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/custodian/util/tftp.rb b/lib/custodian/util/tftp.rb
index c012a82..0c9d119 100644
--- a/lib/custodian/util/tftp.rb
+++ b/lib/custodian/util/tftp.rb
@@ -12,14 +12,14 @@ module Custodian
#
# Store hostname and port
#
- def initialize(hostname, port=69)
+ def initialize(hostname, port = 69)
- 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)
raise ArgumentError, 'Port must be a number' unless port.to_i > 0
@hostname = hostname
- @port = port.to_i
+ @port = port.to_i
end
#
@@ -35,7 +35,7 @@ module Custodian
FileUtils.rm_f(target)
end
- def fetch(file, target=nil)
+ def fetch(file, target = nil)
# HPA's tftp client appears to have a 25s timeout that it is
# not possible to change on the command line.
return tftp("-m binary #{@hostname} #{@port} -c get #{file} #{target}")