Set berksfile path in kitchen.yml

Hello,
Is it possible to configure kitchen (and berks) so that it finds your
berksfile outside the current local directory. I know that, for many, it is
considered best practice to have one berksfile for each cookbook. We,
however, have one berksfile in our cookbooks directory, one level down.

For example, I’d like to do something like: ‘berksfile_path:
"…/Berksfile"’

Thanks in advance.

Best,
Chris

Christopher Farnham
chris.farnham@gmail.com

I'm not sure of a way to tell Berks to look elsewhere, but you can leverage
the fact that the .kitchen.yml runs through ERB so you can do something
like this to copy it from where you want it into the current directory if
wanted to.

<%
FileUtils.cp 'your_source', './Berskfile'
%>

you normal kitchen stuff

On Sat, Feb 28, 2015 at 8:47 AM, Christopher Farnham <
chris.farnham@gmail.com> wrote:

Hello,
Is it possible to configure kitchen (and berks) so that it finds your
berksfile outside the current local directory. I know that, for many, it is
considered best practice to have one berksfile for each cookbook. We,
however, have one berksfile in our cookbooks directory, one level down.

For example, I'd like to do something like: 'berksfile_path:
"../Berksfile"'

Thanks in advance.

Best,
Chris

Christopher Farnham
chris.farnham@gmail.com