- From: Noah Kantrowitz <
>
- To: Chef Dev <
>
- Subject: [chef-dev] Re: Re: RSpec in ChefDK
- Date: Wed, 6 May 2015 20:55:04 +0200
`shell-init bash` adds both the bin/ and embedded/bin/ dirs to the path, but
on Windows only bin/ gets added by the MSI installer :-( Maybe for ChefDK 1.0
we should consider removing embedded/bin/ from the shell-init generated PATH
so it stays internal-only? Also related, the "user_dir" in
$HOME/.chefdk/etcetc doesn't get added to the PATH on Windows but it does
with shell-init.
--Noah
On May 6, 2015, at 8:46 PM, Mike
<
>
wrote:
>
I noticed this as well.
>
>
Our current solution is to ensure that people using rspec that comes with
>
omnibus is to have their Ruby environment set to use the ChefDK-supplied
>
one, typically by recommending the addition of the profile-loader line, as
>
recommended by ChefDK's installer:
>
>
eval "$(chef shell-init bash)"
>
>
In ~/.profile or such.
>
>
Is this perfect? Nope. But it works.
>
>
For people that hack on Ruby and are more comfortable with environment
>
mutation (like myself), we leave the env setup to them.
>
>
But for most of our team, the env setup is the way to go.
>
>
-M
>
>
>
On Wed, May 6, 2015 at 2:40 PM, Noah Kantrowitz
>
<
>
>
wrote:
>
Was just working on some slides about ChefDK and noticed that rspec looks
>
like it is still only in the embedded/bin directory, meaning you need to
>
`chef exec rspec`. Most other top-level tools like berks and rubocop are
>
linked in the main bin/ directory so they are available directly, any
>
reason to not do this for rspec?
>
>
--Noah
>
>
Attachment:
signature.asc
Description: Message signed with OpenPGP using GPGMail
Archive powered by MHonArc 2.6.16.