https://github.com/dbackowski/yaml_config_parser
YAML config parser.
https://github.com/dbackowski/yaml_config_parser
Last synced: 7 months ago
JSON representation
YAML config parser.
- Host: GitHub
- URL: https://github.com/dbackowski/yaml_config_parser
- Owner: dbackowski
- Created: 2011-03-31T08:23:51.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2011-04-09T10:43:17.000Z (about 15 years ago)
- Last Synced: 2025-05-21T09:55:55.798Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 89.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Usage: yaml_config_parser.rb [options]
-c, --config FILE YAML config file
-f, --file FILE File to parse
-h, --help Display this screen
Example:
data.yml source:
global:
host: 127.0.0.1
port: 8080
mail:
smtp: bar.com
from: foo@bar.com
config.txt source:
Host: #{global:host}
Port: #{global:port}
SMTP server: #{mail:smtp}
Mail from: #{mail:from}
After: ./yaml_config_parser.rb -c data.yml -f config.txt
config.txt source:
Host: 127.0.0.1
Port: 8080
SMTP server: bar.com
Mail from: foo@bar.com