about summary refs log tree commit homepage
path: root/bin/mog
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mog')
-rwxr-xr-xbin/mog5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/mog b/bin/mog
index c62d818..c9f1542 100755
--- a/bin/mog
+++ b/bin/mog
@@ -97,7 +97,6 @@ unless cmd = ARGV.shift
 end
 
 cfg[:timeout] ||= 30 # longer timeout for interactive use
-include MogileFS::Util
 mg = MogileFS::MogileFS.new(cfg)
 
 def store_file_retry(mg, key, storage_class, filepath)
@@ -129,7 +128,7 @@ begin
       if (!cat[:raw] && key =~ /^_big_info:/)
         mg.bigfile_write(key, STDOUT, {:verify => true})
       else
-        mg.get_file_data(key) { |fp| copy_stream(fp, STDOUT) }
+        mg.get_file_data(key) { |fp| MogileFS::X.copy_stream(fp, STDOUT) }
       end
     end
   when 'ls'
@@ -201,7 +200,7 @@ begin
       end
     end
     begin
-      copy_stream(STDIN, tee_obj)
+      MogileFS::X.copy_stream(STDIN, tee_obj)
       store_file_retry(mg, key, cfg[:class], tmp.path)
     ensure
       tmp.close!