Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Unclear documentation for multiple check_ids on create_scheduled_maintenances_checks #50

Open
Sarah-E-Greene opened this issue Nov 28, 2014 · 4 comments

Comments

@Sarah-E-Greene
Copy link

Flapjack::Diner.create_test_notifications_checks(CHECK_ID(S), [TEST_NOTIFICATION, ...])

Is this supposed to be:

Flapjack::Diner.create_test_notifications_checks('foo:http', 'bar:http', [TEST_NOTIFICATION, ...])

or

Flapjack::Diner.create_test_notifications_checks( { 'foo:http', 'bar:http' } , [TEST_NOTIFICATION, ...])

or something else entirely?

The README should be updated to clarify this.

@ghost
Copy link

ghost commented Nov 28, 2014

The first is recommended -- I think ['foo:http', 'bar:http'] as a single argument would also work. This code needs better tests written, I can't update the README until I verify the behaviour is actually as I remember it to be. 😄

@Sarah-E-Greene
Copy link
Author

@ali-graham What's your opinion on integrating the flapjack-client tool into flapjack diner, and writing a test suite to cover the lot?

@ghost
Copy link

ghost commented Nov 28, 2014

Sounds good -- I think we want to preserve the 'library-style' access for people who'd prefer that, but baking in CLI access as well gives people the best of both worlds. I think it definitely belongs here rather than shipping with the Flapjack gem itself, which longer-term should really only be needed by people wanting to run server-side stuff.

@jessereynolds
Copy link
Member

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants