Ruby on rails 使用Capistrano 3部署时,如何执行命令并使用其返回值?

Ruby on rails 使用Capistrano 3部署时,如何执行命令并使用其返回值?,ruby-on-rails,capistrano3,whenever,whenever-capistrano,Ruby On Rails,Capistrano3,Whenever,Whenever Capistrano,标题几乎说明了一切。我从Cap 2升级到Cap 3,此命令不再有效: set :whenever_command, "bundle exec whenever -f #{File.join("\`bundle show my_gem\`", "config", "schedule.rb")}" 不执行bundle showBundle并返回字符串本身 我怎样才能用Capistrano 3做到这一点

标题几乎说明了一切。我从Cap 2升级到Cap 3,此命令不再有效:

set :whenever_command, "bundle exec whenever -f #{File.join("\`bundle show my_gem\`", "config", "schedule.rb")}"
不执行bundle showBundle并返回字符串本身

我怎样才能用Capistrano 3做到这一点