浏览代码

feat(export): Add the link to Policyfile for kitchen-test

Signed-off-by: Jeremy MAURO <jeremy.mauro@gmail.com>
Jeremy MAURO 2 年之前
父节点
当前提交
b950553bb7
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      scripts/export_policy.sh

+ 1 - 0
scripts/export_policy.sh

@@ -6,6 +6,7 @@ POLICY=${1:-"base"}
 rm -rf policy-export/*
 rm -rf policy-export/*
 bundle exec chef-cli update "${POLICY}.rb"
 bundle exec chef-cli update "${POLICY}.rb"
 bundle exec chef-cli export "${POLICY}.rb" -a policy-export
 bundle exec chef-cli export "${POLICY}.rb" -a policy-export
+ln -svf "${POLICY}.rb" Policyfile.rb
 pushd policy-export > /dev/null
 pushd policy-export > /dev/null
 tar xfz *.tgz && rm -rf *.tgz
 tar xfz *.tgz && rm -rf *.tgz
 popd > /dev/null
 popd > /dev/null