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

Refactor config loading process by turning config into a PORO instead of hash #299

Merged
merged 8 commits into from
Apr 22, 2017

Conversation

ignatiusreza
Copy link
Contributor

which would allow us to put more responsibility into the config itself, and turn it into a more reliable source of truth for deciding dependencies..

fix #288 & a prerequisite for #265

@ignatiusreza
Copy link
Contributor Author

@EugenMayer I tried to focus solely on refactoring the configuration without touching too much into other stuff... and I also tried to not change the interface of Docker_sync::SyncManager, since that one seems to be designed to be extendable for custom scripting.. 🤞 that I didn't break anything..

hopefully this amount of changes are acceptable.. 😁

@EugenMayer
Copy link
Owner

Great stuff, will have a look at it while i am traveling today. Thank you so much for so much work!

@EugenMayer
Copy link
Owner

Did some changes, will commit those in about 1 hour, there is quite a change though. Really nice work there and thank you for the test, great tooling and nice ruby skills over there!

…g to implement them the same way, GlobalConfig did not include its loader yet.

Share config implementations properly, use a config locator to actually be able to change / modify paths during scaffolding and other thinsg.

Use the config_locator as a path locator only, not a factory ( for half of th configs )

introduce config_serializer to have a specific service to load, expand serialize and deserialize configs, to share implementations but also to be able to change / introduce other ones

Ensure we actually run under ruby 2.0 - no usage of heredoc squiggle allowed
@EugenMayer
Copy link
Owner

@ignatiusreza just see the commit messages, hopefully i did not cross your idea, i really like what you did there. Thanks

@ignatiusreza
Copy link
Contributor Author

@EugenMayer nice ones! agreed that it looks better with locator & serializers being separated, and with configurable global config path, we can avoid stubbing in test 👍

@EugenMayer EugenMayer merged commit f1e450f into master Apr 22, 2017
@EugenMayer
Copy link
Owner

Great contribution, thank you!

@esolitos
Copy link

Amazing contribution! Great job!

@ignatiusreza
Copy link
Contributor Author

Awesomesauce!

@ignatiusreza ignatiusreza deleted the config-object branch April 23, 2017 03:07
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.

unison and unox are required even while using rsync
3 participants