## # Rake helper task. def run_remote_rake(rake_cmd) run "cd #{current_path} && #{rake} #{env_args} RAILS_ENV=#{rails_env} #{rakefile} #{rake_cmd.split(',').join(' ')}" set :rakefile, nil if exists?(:rakefile) end