laurilehmijoki / s3_website

Manage an S3 website: sync, deliver via CloudFront, benefit from advanced S3 website features.
Other
2.24k stars 187 forks source link

Add command to download s3_website.jar before pushing #242

Closed jcbpl closed 8 years ago

jcbpl commented 8 years ago

In a CI environment, the s3_website jar file downloaded by the push command may not be cached between builds, since push will typically be run in a deploy phase that's separate from dependency installation/caching. It'd be nice to be able to include something like s3_website install as a dependency command in our CI builds, to force the downloading of the jar file in time for caching.

I'm currently working around this by doing a manual wget (see cityofaustin/austinconventioncenter.com#9), but a built-in command would be a more resilient option.

laurilehmijoki commented 8 years ago

Here's the download function: https://github.com/laurilehmijoki/s3_website/blob/master/bin/s3_website#L228

You can write a new Thor command that invokes that function. Care to submit a pull request on that?