2
我想在運行安裝程序時使用opsworks使用的tmpdir。我在hook(before_restart.rb)中調用它,但它不起作用。 下面是我在做什麼:Get opsworks tmpdir
app_path = release_path
app_source = "#{node['tmpdir']}"
bash 'get_missing_files' do
cwd ::File.dirname(app_path)
code <<-EOH
echo #{app_source}
EOH
end
但我app_source變量的結果是什麼......我希望是像「/ tmp目錄/ opsworks20140120-917-pv1iee」。我究竟做錯了什麼?