assemblage icon indicating copy to clipboard operation
assemblage copied to clipboard

Added an easy to use config/assemblage.rb file for ordering

Open taf2 opened this issue 14 years ago • 3 comments

I really like the approach of zero configuration - but in the case of requiring a specific order for the included scripts I think a lite configuration file is necessary. The file only exposes a very simple API for describing specific bundles to provide ordering. If the bundle is not configured it will continue to use the default behavior of ordering them alphabetically. I also had to refractor things a bit to provide some basic test coverage of the added configuration feature.

I have an example configuration file here: https://github.com/taf2/assemblage/blob/master/test/config/assemblage.rb

Hope you find this change useful also. Thanks for the great work on the packager!

taf2 avatar Feb 09 '11 20:02 taf2

Hi Josh, wondering if you would be interested in these changes. I'd also like to get assemblage into rubygems.

taf2 avatar Mar 17 '11 14:03 taf2

Hi there! Sorry for such a late reply. Been quite busy with other projects.

I'd like to see some more tests for these changes before I put them into production. Also, since this is quite a large change, are you sure this allows for backwards compatibility?

Why were you putting the compiled .yml files into the config/ directory? Why not into the tmp/ directory, and then blow them away at the end of the task? Do they serve some purposes other than for what I'm looking at in the code?

Thanks for the contributions!

voxxit avatar Apr 21 '11 13:04 voxxit

Hi, no worries about delay - I get busy too. Yeah, I agree about moving the .yml files into /tmp and deleting near the end. I'm using this in 2 production sites already and it's working really well... As for backwards compat - I think it should be, but I've not been able to test it really... As I recall, the configuration file only kicks in when it's present and otherwise things will work exactly as they did before. When I get some cycles I'll circle back around to clean up the temporary yml files.

taf2 avatar Apr 21 '11 13:04 taf2