Today I Learned: You can split a string in Ruby and request an array with a maximum number of values.
Example:
|
|
This will populate bucket with d3aa8b1gak9v1d.cloudfront.net
and put the rest of the string in file_path.
Full Details: https://ruby-doc.org/core-3.1.2/String.html#method-i-split