elijah / chef-prometheus

Chef cookbook for Prometheus. The open source service monitoring system and time-series database.
Apache License 2.0
52 stars 93 forks source link

Rearrange recipes and start of precompiled binary support #24

Closed tuahk closed 9 years ago

tuahk commented 9 years ago

The purpose of this PR is to suggest a new way to arrange our recipes.

This will obviously break chefspecs but I just wanted to run this through you guys first. If I get green light for this then I start making changes to chefspec and update this PR to include those.

This PR also starts work on binary.rb and adds some serverspec tests for it.

rayrod2030 commented 9 years ago

This is a nice refactor. I would consider renaming recipes/init.rb to recipes/service.rb to use a more generic term.

rayrod2030 commented 9 years ago

:+1:

tuahk commented 9 years ago

I renamed source_spec.rb to default_spec.rb and put all the tests in there.

It would be cleaner if we had separate spec files for each recipe but chefspec doesn’t find prometheus service from other recipes since we include all to default. There probably is a way around this but I don't yet know about it.

tuahk commented 9 years ago

Sorry about the rubocop commits but for some reason rubocop doesn't complain about them on my computer. I have to look in to it.