about summary refs log tree commit homepage
path: root/lib/mogilefs/mogilefs.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-11-05 01:59:27 +0000
committerEric Wong <normalperson@yhbt.net>2011-11-05 01:59:27 +0000
commitd6b2624ed1f4502d499dad93ee44a716b5c56f08 (patch)
treefda544feac7b7188809baa5f08145ed4ae63a25e /lib/mogilefs/mogilefs.rb
parent37c6ee5d64d2cbdc739b4f4afcf55b3762234392 (diff)
downloadmogilefs-client-d6b2624ed1f4502d499dad93ee44a716b5c56f08.tar.gz
rename httpfile => http_file
Should be easier to read this way
Diffstat (limited to 'lib/mogilefs/mogilefs.rb')
-rw-r--r--lib/mogilefs/mogilefs.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/mogilefs/mogilefs.rb b/lib/mogilefs/mogilefs.rb
index 267c896..d17d6ec 100644
--- a/lib/mogilefs/mogilefs.rb
+++ b/lib/mogilefs/mogilefs.rb
@@ -111,14 +111,14 @@ class MogileFS::MogileFS < MogileFS::Client
     when nil, '' then
       raise MogileFS::EmptyPathError
     when /^http:\/\// then
-      httpfile = MogileFS::HTTPFile.new(dests, bytes)
-      yield httpfile
-      rv = httpfile.commit
+      http_file = MogileFS::HTTPFile.new(dests, bytes)
+      yield http_file
+      rv = http_file.commit
       @backend.create_close(:fid => res['fid'],
-                            :devid => httpfile.devid,
+                            :devid => http_file.devid,
                             :domain => @domain,
                             :key => key,
-                            :path => httpfile.uri.to_s,
+                            :path => http_file.uri.to_s,
                             :size => rv)
       rv
     else