从Capistrano任务运行刀命令

时间:2013-03-08 03:28:59

标签: capistrano bundler chef knife

我正在尝试通过capistrano任务配置刀具命令行工具,并在遇到以下行时遇到问题

system "knife configure --yes --defaults -s ... -c ... -u ... -r ..."

它说这个

Could not find net-ssh-2.6.5 in any of the sources
Run `bundle install` to install missing gems.

我确实安装了这个宝石,我相信它配有厨师。我认为这与Capistrano运行的环境有关。

1 个答案:

答案 0 :(得分:0)

卸载Chef:

gem uninstall chef

重新安装:

gem install chef
相关问题