【发布时间】:2014-02-24 08:25:22
【问题描述】:
http://rubygems.org/gems/capistrano/versions/2.15.5
我想在上面的 capistrano 版本中使用 net-ssh 版本 2.7.0 而不是 2.8.0。如何在我的 Gemfile 中指定这个
我在 Gemfile 中添加了以下内容,生成的 Gemfile.lock 如下所示。即便如此,我在共享包文件夹中也看到了 net-ssh 2.7.0 和 2.8.0。
gem 'net-ssh', '2.7.0'
capistrano (2.15.5)
highline
net-scp (>= 1.0.0)
net-sftp (>= 2.0.0)
net-ssh (>= 2.0.14)
net-ssh-gateway (>= 1.1.0)
net-scp (1.1.2)
net-ssh (>= 2.6.5)
net-sftp (2.1.2)
net-ssh (>= 2.6.5)
net-ssh (2.7.0)
net-ssh-gateway (1.2.0)
net-ssh (>= 2.6.5)
net-ssh (= 2.7.0)
【问题讨论】:
-
在您的 Gemfile 或 Gemfile.lock 中没有对 2.8.0 的引用。仅仅因为它是以前安装的,并不意味着你的包正在使用它。
标签: ruby-on-rails capistrano gemfile