如何使用 Ansible 为 rbenv 安装 gems [英] how to install gems for rbenv, using Ansible

查看:27
本文介绍了如何使用 Ansible 为 rbenv 安装 gems的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 Ansible,我如何使用 gem(或其他)模块安装 gem(在本例中为 bundler),以便我可以运行以下命令而不会出错?

Using Ansible, how can I use the gem (or other) module to install a gem (in this case, bundler) such that I can run the following command without error?

deployer@boxes-vm:~$ ~/.rbenv/bin/rbenv exec bundle install
rbenv: bundle: command not found

推荐答案

好吧,你总是可以使用 shims 目录中的包

Well, you can always use the bundle from the shims directory

command: ${HOME}/.rbenv/shims/bundle install --deployment

这篇关于如何使用 Ansible 为 rbenv 安装 gems的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆