Displaying 1 result from an estimated 1 matches for "mdsol".
Did you mean:
mdsl
2012 Aug 17
0
iterate through a multi dimensional hash
...y hash from a yaml file this way
require ''yaml''
path = File.join(Rails.root, ''config'', ''stage-aws-opscode.yml'')
SAO = YAML.load_file(path)
The stage-aws-opscode.yml contains the following data
sandbox: &defaults
amazon: aws-green
chef: mdsol
validation:
<<: *defaults
cruise:
<<: *defaults
hendricks:
<<: *defaults
distro:
<<: *defaults
performance:
<<: *defaults
innovate:
amazon: aws-red
chef: mdsol-production
production:
amazon: aws-red
chef: mdsol-production
this is my iteration...