Chef infra 没有bash操作符,我们如何实现这一点
如何使用任何资源更改此bash操作符 只是我正在移动特定的目录到特定的目录Chef infra 没有bash操作符,我们如何实现这一点,chef-infra,chef-recipe,chef-solo,test-kitchen,Chef Infra,Chef Recipe,Chef Solo,Test Kitchen,如何使用任何资源更改此bash操作符 只是我正在移动特定的目录到特定的目录 bash " deploy" do cwd "#{stage}" code <<-EOH cp -pr "#{stage}/#{name}-#{package_version}.tar" "#{stage_operator}/" tar xvf "#{stage}/#{name}-#{package_version}.tar" mv #{stage}/processing
bash " deploy" do
cwd "#{stage}"
code <<-EOH
cp -pr "#{stage}/#{name}-#{package_version}.tar" "#{stage_operator}/"
tar xvf "#{stage}/#{name}-#{package_version}.tar"
mv #{stage}/processing/* #{scripts}/
mv #{stage}/config/* #{config}/
mv #{stage}/dags/* #{dags}/
mv #{stage}/plugins/* #{ps}/
mv #{stage}/_lib/* #{libs}/
EOH
not_if "ls -l \"#{stage_operator}\"|grep \"#{name}-#{package_version}.tar\" "
end
bash“部署”do
cwd“#{stage}”
代码强制性插件(我写的),但食谱/资源可能涵盖了您需要的内容。很难说清楚,因为您只显示了代码的一小部分
另一方面,如果你手头的东西有用,可能就用它来运行。你希望有人为你写代码吗?请参阅及