Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to purge config dir #30

Merged
merged 4 commits into from
Sep 27, 2014
Merged

Conversation

sorenisanerd
Copy link
Contributor

This makes it easy to manage service definitions with Puppet. When a service is removed, Puppet no longer generates the file and setting purge => true means it gets removed and then it disappears from consul.

@solarkennedy
Copy link
Contributor

Oh wow I did not realize purge was off. @EvanKrall is there any reason not to purge for our use-case?

@sorenh please make it purge by default.

@sorenisanerd
Copy link
Contributor Author

Done

@solarkennedy
Copy link
Contributor

Ok, the only thing missing here is, you guessed it, a test for this new functionality.

Can you give me a test that by default this directory is purge=>true, and if given this special param the folder is purge => false?

Additionally the input should be validated.

@sorenisanerd
Copy link
Contributor Author

Done.

...and I officially hate spec's default behaviour of blowing away fixtures when tests pass. Geez, this took way too long.

Conflicts:
	spec/classes/init_spec.rb
@solarkennedy
Copy link
Contributor

Super!

solarkennedy added a commit that referenced this pull request Sep 27, 2014
Add option to purge config dir
@solarkennedy solarkennedy merged commit 21f1dff into voxpupuli:master Sep 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants