Using Ruby with sshkit

270 Views Asked by At

rbenv and Ruby are setup for the logged in sshkit user, but the path seems broken.

`rescue in block (2 levels) in execute': Exception while executing as [email protected] : bundle install exit status: 127 (SSHKit::Runner::ExecuteError)
bundle install stdout: Nothing written
bundle install stderr: bash: bundle: command not found

How do I use Ruby and gems with sshkit?

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
0

There are 0 best solutions below