Shadowfiend / sbt-resource-management

Provides tasks to compile coffee script and compass/SASS files, plus tasks to bundle and upload to S3.
http://hacklanta.com/
MIT License
21 stars 7 forks source link

Ability to deploy individual bundles to different buckets. #11

Closed farmdawgnation closed 11 years ago

farmdawgnation commented 11 years ago

This pull request implements the ability for someone to specify a different destination bucket for particular bundles. Bundles who have been targeted at a specific destination bucket will be excluded from the deployment to the bucket specified in the awsS3Bucket setting in build.sbt.

To target a bundle at a particular bucket, you use an arrow designation in the bundle file. So, as an example:

primary-scripts
script1.js
script2.js
script3.js

aux-scripts->aux.frmr.me
aux1.js
aux2.js

In the above example, the primary-scripts bundle would be deployed to the bucket defined in awsS3Bucket and the aux-scripts bundle would be deployed to a bucket named aux.frmr.me.

Naturally, these two buckets must both be accessible from the same AWS account with the same access key and secret.

farmdawgnation commented 11 years ago

I've also provided an updated copy of the Bundles singleton here: https://gist.github.com/3886579

farmdawgnation commented 11 years ago

Still need to test some of the latest changes. rvm is being a punk on my local machine and my server is experiencing the fun "NoClassDefFound" error on org.mozilla.javascript.ErrorReporter or some such like that.

-_____-

Shadowfiend commented 11 years ago

Coo'.

Shadowfiend commented 11 years ago

Any updates on this, @farmdawgnation ?

farmdawgnation commented 11 years ago

Not yet, except that I'm using it successfully in production. Heh. I'll take some time this weekend while I'm working on Anchor Tab stuff, clean this guy up, and ping you.

Shadowfiend commented 11 years ago

Ok, sweet, thanks!

farmdawgnation commented 11 years ago

Oi. @Shadowfiend - can we get this merged and another release spun out to sonatype? I don't think any of the other suggested changes are going to happen anytime soon and it's still a win in terms of features...

Shadowfiend commented 11 years ago

Remind me on Monday and I'll attend to it.

Shadowfiend commented 11 years ago

Still need a reminder on the sonatype build, but I went ahead and merged this to master.