Adding this sed command to the deploy script


I have a small section of sed code I would like to add to the

deploy.rb script.

The code changes the image paths of our stylesheets

for file in *; do
sed -e ‘s//images/
“$file” > “${file}.sub”
rm “$file”
mv “${file}.sub” “${file}”

I am a newbie at writing and testing rake tasks and would like to know
what the best way to test this before it goes live?

Clem C Rock

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs