rbenv 和 Ruby 是为登录sshkit
用户设置的,但路径似乎已损坏。
`rescue in block (2 levels) in execute': Exception while executing as user@server.com : bundle install exit status: 127 (SSHKit::Runner::ExecuteError)
bundle install stdout: Nothing written
bundle install stderr: bash: bundle: command not found
如何在 sshkit 中使用 Ruby 和 gems?
on hosts, in: :parallel do |host|
with http_proxy: 'myproxy',
https_proxy: 'myproxy' do
within "/home/user/stufftorun" do
execute :git, "fetch"
execute :git, "pull", "origin", "master"
execute "rbenv exec bundle install" # this fails
execute "threads=4 report=./reports/test.out bundle exec cucumber -q"
end
end
end