jammit-s3
jammit-s3 copied to clipboard
Multiple buckets & disable defaults
I'd like to be able to upload to multiple buckets when running jammit. ie:
s3_bucket: bucket1 s3_upload_files:
- public/images/**
s3_bucket: bucket2 s3_upload_images:
- public/css/**
It seems that the gem ignores the first bucket and just uploads everything based on the second s3_bucket specification.
In addition, I'd like to disable the automatic syncing of public/images/* but it looks like even with s3_upload_files set, it still pulls the assets/* and images/** folders into s3. Is there a way to disable this?
Since I'm doing this within a rake task, a simple workaround is to just run:
system "jammit-s3 -c bucket1.yml" system "jammit-s3 -c bucket2.yml"
However, the default of uploading assets/* and images/* is still duplicating them each in both buckets.