diff options
author | Steven Danna <steve@opscode.com> | 2014-06-20 10:40:24 -0700 |
---|---|---|
committer | Steven Danna <steve@opscode.com> | 2014-06-23 14:52:21 -0700 |
commit | fa77f1e10e8538fa3e06de4f236787c2429fd72a (patch) | |
tree | 89abc97574dfac1e53a70e58b4fc68ee7d693b5c /.yardopts | |
parent | 75c2c4bfb2fda2c1cd3f8d092043d9dc8fbc7267 (diff) | |
download | chef-fa77f1e10e8538fa3e06de4f236787c2429fd72a.tar.gz |
[WIP] server-to-server cookbook transferssd/cheffs_server_to_server
This code allows a user to use ChefFS to transfer a cookbook from one
Chef server to another. Files are streamed to a tempfile in transit,
but a full cookbook repo on disk is not required.
The upload_checksum functions is basically a copy-paste from
cookbook_uploader.rb
I would love to get some feedback on how we could improve this.
Some items that feel gross to me:
1) It would be nice to remove some of the duplication around
upload_checksum. Would that be appropriate to pull out into a module
that could be used in both? Or perhaps a model object for individual
cookbook files with a send_to(url) method?
2) Switching on the class of other rather than using some sort of
inheretence.
3) Using a temporary file rather than just streaming the downloading
directly into a streaming upload.
Diffstat (limited to '.yardopts')
0 files changed, 0 insertions, 0 deletions