【发布时间】:2017-02-23 02:18:32
【问题描述】:
我在厨师食谱中有一个execute 命令,我想将cwd 属性设置为unix 命令的输出。
execute 'run dynamically generated install file' do
command 'make install'
cwd '' # would like the output of `ls -Adrt /tmp/unixODBC.* | tail -n 1`
end
这可能吗?
【问题讨论】:
标签: ruby unix chef-infra