0
getsStats.sh
스크립트에서 얻은 rate
변수에 액세스 할 수 없습니다. 스크립트는 모든 haproxy 통계를 출력합니다.요리사 bash 리소스 내에서 변수를 출력하는 방법
bash "get statistics" do
cwd '/vagrant'
code <<-EOH
./getsStats.sh
if [ "$rate" -gt 20 ]; then
echo "hi"
else
echo "Boo"
fi
EOH
end