Need a hand on the split command in Chef / Ruby or a regex...
Posted on 2016-08-09
I am using Chef / Ruby and I am using two environments 0001 and 0002..I have 2 log files that I want to lay down on two nodes on in each environment, so hope I make sense here. I need to hopefully use split in Ruby to parse the 0001 / 0002 and determine which log file to lay down - one in 0001 and 0002 for the other, here is what I have in the configure.rb file:
environment_id = node[:chef_environment].split()
Log file names:
If I didn't give enough detail pls let me know.