https://github.com/optum/legion-settings
A gem written to handle LegionIO Settings in a consistent way across extensions
https://github.com/optum/legion-settings
legionio settings
Last synced: about 2 months ago
JSON representation
A gem written to handle LegionIO Settings in a consistent way across extensions
- Host: GitHub
- URL: https://github.com/optum/legion-settings
- Owner: Optum
- License: apache-2.0
- Created: 2021-06-01T22:12:27.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-09T15:20:49.000Z (about 5 years ago)
- Last Synced: 2025-10-07T22:28:00.324Z (8 months ago)
- Topics: legionio, settings
- Language: Ruby
- Homepage:
- Size: 34.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
Legion::Settings
=====
Legion::Settings is a hash like class used to store LegionIO Settings.
Supported Ruby versions and implementations
------------------------------------------------
Legion::Json should work identically on:
* JRuby 9.2+
* Ruby 2.4+
Installation and Usage
------------------------
You can verify your installation using this piece of code:
```bash
gem install legion-json
```
```ruby
require 'legion-settings'
Legion::Settings.load(config_dir: './') # will automatically load json files it has access to inside this dir
Legion::Settings[:client][:hostname]
Legion::Settings[:client][:new_attribute] = 'foobar'
```
Authors
----------
* [Matthew Iverson](https://github.com/Esity) - current maintainer