I have sets of data like this:
5.3.12.0
5.3.12.1
5.3.12.2
5.3.12.3
5.3.12.4
How do I structure this in a YAML file, and then load it into Ruby as a simple array?
I want the data above to be loaded as an array like:
fileset_levels = ["5.3.12.0", "5.3.12.1", "5.3.12.2", "5.3.12.3", "5.3.12.4"]
I'll have multiple sets of these arrays I want to load, so I want to have files called:
vuln1.yml
vuln2.yml
and have them all load as arrays I can use in my Ruby script.
I've tried:
vuln1_array = yaml::load("vuln1.yml")
but it does not create the array.