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

Support system property configuration #167

Merged
merged 1 commit into from
Jun 15, 2018
Merged

Conversation

ianagbip1oti
Copy link
Member

Fixes #106

@ianagbip1oti ianagbip1oti requested a review from CoreyShupe June 14, 2018 05:43
return create(System.getenv("EC_TOKEN"));
return create(
CONFIG
.get("ec.token")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this work? Should we throw in a default configuration file for example. I think this is a bit ambiguous as to what to do. Maybe throw a config file into the resources and if not built create a default one for them. Something needs to be done so before installation there's a way to figure out how to set it up, rather that be in docs or some other example.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't read from files yet, it just adds system properties as per #106. So you can configure the token by setting the EC_TOKEN environment variable, or the ec.token system property.

We do need a getting started guide, but imo that's outside the scope of this issue.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah okay, so this is just the beginning to implementing a configuration file, or rather the implementation to provide support for it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the beginning of enabling configuration to happen in ways other than just environment variables, yes.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then this is probably good for now, it definitely needs work in documentation and examples for installation. I'll put that in the issue list.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#108 exists for documentation

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see configuration specification. Should we add that as a checklist item.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or leave a comment

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, I'll leave a comment there and accept this PR through.

@ianagbip1oti ianagbip1oti merged commit 4e15f77 into master Jun 15, 2018
@ianagbip1oti ianagbip1oti deleted the system_properties_config branch June 15, 2018 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants