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

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

问题描述

使用Ansible,如何使用gem(或其他)模块安装gem(在这种情况下为捆绑器),以便我可以运行以下命令而不会出现错误?

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天全站免登陆