-1
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
코드를 작성하려고하십니까? [ask] 및 [help/dont-ask]를 참조하십시오. –