【发布时间】:2014-09-19 16:47:33
【问题描述】:
如何在 chef 中编写此命令?
/home/vagrant$ source ~/.rvm/scripts/rvm (->enter)
我试过了……
execute "foo" do
command "source ~/.rvm/scripts/rvm"
action :run
end
简而言之,如何在 chef 中编写一个简单的命令?不安装东西。谢谢!!!
【问题讨论】:
-
我也尝试了 bash "foo" do code "source ~/.rvm/scripts/rvm" end Error execution action
runon resource 'bash[foo]'
标签: chef-infra chef-recipe chef-solo