YAML defaults
I really do love the way you can add defaults in YAML
development: &defaults
consumer_key: randomzombieaction
consumer_secret: morerandomzombieaction
test:
<<: *defaults
staging:
<<: *defaults
production:
<<: *defaults
“...I've been working since 2008 with Ruby / Ruby on Rails, love a bit of Elixir / Phoenix and learning Rust. I also poke through other people's code and make PRs for OpenSource Ruby projects that sometimes make it. Currently working for InPay...”
I really do love the way you can add defaults in YAML
development: &defaults
consumer_key: randomzombieaction
consumer_secret: morerandomzombieaction
test:
<<: *defaults
staging:
<<: *defaults
production:
<<: *defaults