Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/prolog/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Chef infra 如何阻止厨房使用**~文件?切菲格诺?_Chef Infra_Test Kitchen - Fatal编程技术网

Chef infra 如何阻止厨房使用**~文件?切菲格诺?

Chef infra 如何阻止厨房使用**~文件?切菲格诺?,chef-infra,test-kitchen,Chef Infra,Test Kitchen,我使用emacs进行开发。Emacs将使用tilde~对编辑过的文件进行备份。当我跑的时候 kitchen converge 我得到以下错误 Recipe Compile Error in /tmp/kitchen/cache/cookbooks/lcd_haproxy/attributes/default.rb~ 请注意文件末尾的~ 现在,如果我运行以下命令,kitchen converge将不会出错: find ./ -name *.*\~ | xargs rm 查看chefignor

我使用emacs进行开发。Emacs将使用tilde~对编辑过的文件进行备份。当我跑的时候

kitchen converge
我得到以下错误

Recipe Compile Error in /tmp/kitchen/cache/cookbooks/lcd_haproxy/attributes/default.rb~
请注意文件末尾的~

现在,如果我运行以下命令,kitchen converge将不会出错:

find ./ -name *.*\~ | xargs rm
查看chefignore,如果看到以下内容:

# EDITORS #
###########
...snip...
*~
这将忽略以~结尾的文件。在chefignore文件中还可以找到以下解释:

# Put files/directories that should be ignored in this file when uploading
# to a chef-server or supermarket.
因此,这可能不是阻止厨房使用不需要的文件的地方


有人知道如何阻止厨房使用。~文件吗

不幸的是,TestKitchen实际上并不知道chefignore文件(尽管它在我们的列表中)。上传的内容主要取决于。

不幸的是,TestKitchen实际上并不知道chefignore文件(尽管它在我们的列表中)。上传的内容主要取决于。

检查该选项解释了如何设置emacs以将文件保存回其他文件夹中。这应该会有帮助,因为它不会弄乱你的厨房命令检查,它解释了如何设置emacs将文件保存回不同的文件夹。这应该会有帮助,因为它不会扰乱你的厨房指挥