poise / poise-archive

A Chef cookbook to unpack file archives like TAR and ZIP files.
Apache License 2.0
10 stars 13 forks source link

Treat archive files and directories as resources? #8

Open ncs-alane opened 7 years ago

ncs-alane commented 7 years ago

I have a working design that extracts the archive and manages each file within as a separate resource, which ensures that changes to the extracted package are remediated during convergence. Is this a feature that could be accepted in this cookbook?

coderanger commented 7 years ago

You mean for idempotence tracking? unfortunately that would be both slow and frustrating. Would be better to store stuff externally, like just keep the hashes in a JSON file or something. Seems like a low-benefit change though for very high complexity and adding structural invariants.

I purposefully structured this as non-idempotent except for the URL-based case. It's not perfect but I think it makes it a bit easier to understand at least.

ncs-alane commented 7 years ago

😭

coderanger commented 7 years ago

If you can show how to make it work without being a major perf impact or being brittle, I'm certainly open to look at it :)

ncs-alane commented 7 years ago

🍾