在CentOS 6.5上与Chef一起安装RVM

在CentOS 6.5上与Chef一起安装RVM,centos,rvm,chef-infra,Centos,Rvm,Chef Infra,到目前为止,这就是我的食谱 execute "rvm-install" do command "curl -L get.rvm.io | bash -s stable" action :run end execute "rvm-setup" do command "source /etc/profile.d/rvm.sh" action :run end rvm安装通过良好,但在运行rvm安装时,我得到以下结果: Errno::ENOENT ------------- No

到目前为止,这就是我的食谱

execute "rvm-install" do
  command "curl -L get.rvm.io | bash -s stable"
  action :run
end

execute "rvm-setup" do
  command "source /etc/profile.d/rvm.sh"
  action :run
end
rvm安装
通过良好,但在运行
rvm安装
时,我得到以下结果:

Errno::ENOENT
-------------
No such file or directory - source /etc/profile.d/rvm.sh
文件在那里,我可以从终端运行相同的命令


为什么我会遇到这个错误,我该如何解决这个问题呢?

我还想尝试烘焙我自己的RVM食谱;然而,在看了这本书之后,我决定反对它。它足够灵活,可以使用自定义配方,也可以使用节点属性驱动