elastichosts-api
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Not an official Elastichosts resource: I am merely a customer
In this repository:

## elastichosts-upload.sh 

This is a lightly-hacked version of the Drive Upload tool that
Elastichosts supply as an example of the API.  It adds a -s flag that
allows upload of shared images, and attempts (not entirely
successfully) to detect when the -z flag is misbehaving.

## eh-upload.rb 

A work-in-progress Ruby drive upload script.  The salient difference
between this and the standard upload tool is in the way it gzips in
transit: elastichosts-upload gzips each chunk and the server
uncompresses and writes it before preparing to receive the next chunk,
but eh-upload.rb compresses the the entire image before sending it (in
chunks) into a temporary drive image on the server, then uses more
Elastichosts API calls to decompress that temporary image in situ.
For images with lots and lots of zero in them, this is expected (by
me, at least) to be faster

### Installation and invocation

Prerequisites: Ruby, Gembundler

    $ bundle install
    $ bundle exec ruby eh-upload.rb --help


本源码包内暂不包含可直接显示的源代码文件,请下载源码包。