I’m getting failures when I try to run these two Ruby scripts inside
this one here. But, in the command shell, when I go to that directory, I
can run those other two Ruby scripts just fine. All I’m doing here is
parsing out particular filetypes, by virtue of the filenames and
extensions, and then trying to run separate Ruby scripts on those files.
data1 = config[“filenames”]
data2 = config[“destinations”]
data1.keys.each do |filetype|
filenames = data1[filetype]
target = data2[filetype]
filenames.split(", ").each do |pattern|
if pattern == “aicpa*.gif”
puts “executing the AICPA GIF script.”
puts “That Ruby script, AICPA_gif.rb, did not run.”
if pattern == “aicpa*.jpg”
puts “executing the AICPA JPEG script.”
puts “That Ruby script, AICPA_jpeg.rb, did not run.”
This is my output:
executing the AICPA GIF script.
That Ruby script, AICPA_gif.rb, did not run.
executing the AICPA JPEG script.
That Ruby script, AICPA_jpeg.rb, did not run.