Line https://github.com/delano/rye/blob/master/lib/rye/cmd.rb#L195 should have `filepath` in place of `remote_path`, and `newcontent` in place of `str`.