This is my config.yml file. In fact user_id, api_key and shared_secret are the same for each environment (development, test or production).
development:
user_id: '1234'
api_key: '1234'
shared_secret: '43243'
some_dev_data: 'fdsfdsfd'
test:
some_test_data: 'rytr'
production:
some_prod_data: 'hgf'
How do I make them independent from current environment? Or how to share them between all environments?
You can use anchors to pull out shared data:
Your values under
shared_stuffare given the anchor namesharedwhich you can then pull into your different environments.