UniversalDevicesInc / Polyglot

Polyglot Open Source
MIT License
24 stars 2 forks source link

Adds custom nodeserver_config standard. #57

Closed Einstein42 closed 8 years ago

Einstein42 commented 8 years ago

Adds YAML support for new poly.nodeserver_config.

Allows both reading, and writing back to custom config file using Polyglot's new standard of YAML. Documentation link in Issue #49 notes.

You can specify the "configfile": "filename.yaml" in the server.json or it will automatically look for "config.yaml" in the node_server root directory.

mkohanim commented 8 years ago

Hello everyone,

Thanks so very much for all the feedback and suggestions. I do not know much about YAML. Based on a quick review, it seems that its most important feature is human readability. My main question is: what happens to all those node servers already working? Do they have to be migrated?

With kind regards, Michel

Einstein42 commented 8 years ago

I made this feature backwards compatible, so anything the node server authors are currently doing will continue to work. We just felt it was in the best interest to standardize this moving forward as even we did it differently. Moving forward the YAML way will be "how it should be done", but not required.

mkohanim commented 8 years ago

Thanks James! Do we have a document describing the YAML structure?

With kind regards,

Einstein42 commented 8 years ago

This is the one that I use. http://yaml.org/spec/1.1/#id857168