3.2. 複数のロケーションの作成

以下の Bash スクリプトの例では、ロンドン、Munich、ボストンの 3 つのロケーションを作成し、それを Example Organization に割り当てます。

ORG="Example Organization"
LOCATIONS="London Munich Boston"

for LOC in ${LOCATIONS}
do
  hammer location create --name "${LOC}"
  hammer location add-organization --name "${LOC}" --organization "${ORG}"
done