Allow 'store_content' to be used with a streamable object
commit6cf59a3231bd53a1bfe91df31e900e4349a4746e
authorJacob Burkhart <jacob@brontes3d.com>
Mon, 23 Feb 2009 18:01:55 +0000 (23 13:01 -0500)
committerEric Wong <normalperson@yhbt.net>
Mon, 23 Feb 2009 22:39:17 +0000 (23 14:39 -0800)
treedf3df76bb141dd88c211dac861cac1f57a0b2bd3
parentaaf794c5455b17ab8f0a15ccd81f7496bcc0b8d5
Allow 'store_content' to be used with a streamable object

New way to call 'store_content' with a
MogileFS::Util::StoreContent allows you to roll your own method
of streaming data to mogile on an upload (instead of using a
string or file)

[ew: this still requires a known content length beforehand]
[ew: applied with --whitespace=strip, rewritten subject,
     80-column wrapping]

Signed-off-by: Eric Wong <normalperson@yhbt.net>
lib/mogilefs/httpfile.rb
lib/mogilefs/mogilefs.rb
lib/mogilefs/util.rb
test/test_mogilefs.rb