ruby_block資源奇怪的行爲,我有一個配方的末尾有兩個紅寶石塊: ruby_block 'set permissions for app dir' do
block do
require 'fileutils'
FileUtils.chown_R 'user01', 'user01', '/mnt/app/'
end
action :ru
我使用MySQL的廚師食譜在 https://supermarket.chef.io/cookbooks/mysql 下發現了一個無業遊民運行Ubuntu-16.04 我的食譜包含塊: mysql_service 'foo' do
port '3306'
version '5.7'
initial_root_password 'hello'
action [
我寫在廚師的食譜中,我已經使用腳本資源使用bash解釋器來執行sed命令正常工作: script 'find the lastest version of the major release available' do
interpreter "bash"
code <<-EOH
SUBMGR_REPO=$(ls -1d /net/gutstools.am.li