class MogileFS::Util::StoreContent

MogileFS::Util::StoreContent allows you to roll your own method of streaming data on an upload (instead of using a string or file)

Current versions of this library support streaming a IO or IO-like object to using MogileFS::MogileFS#store_file, so using StoreContent may no longer be necessary.

Public Class Methods

new(total_size, &writer_proc) click to toggle source
Calls superclass method
# File lib/mogilefs/util.rb, line 11
def initialize(total_size, &writer_proc)
  @total_size = total_size
  super(&writer_proc)
end

Public Instance Methods

length() click to toggle source
# File lib/mogilefs/util.rb, line 15
def length
  @total_size
end