welaika/photocopier — pull request #8 by francescolaffi (2013-09-20 17:20:42+00:00)
Title: fix rsync_options escaping bug (escaped as single word)

Using more than one options in movefile>{env}>ssh>rsync_options doesn't work because the string is escaped as single shell word and rsync try to parse it as a single option

I used Shellwords.split (escape gem doesnt provide splitting) to do a shell-aware split so Escape.shell_command will later escape them as single options

maybe it would make sense to ditch the escape gem and just use the shellwords module from stdlib
(Shellwords.join can be used instead of Escape.shell_command)