capifony
capifony copied to clipboard
Work around ruby / bash newline backslash issue
When interpolating strings like so:
file_content = "parameters:\n assets_version: #{assets_version}"
run "echo '#{file_content}' | #{try_sudo} tee #{file_path}"
I end up with a file on my server looking like:
parameters:\
assets_version: o2aepl
This println "fix" is helping