Problems with Chef Ruby and System Ruby, is RVM the answer?

Hello Ruby Talk,

I'm a very new Ruby person, mostly my use with Ruby is for Chef cookbook
writing. One of my goals is using Ruby for all of my work outside of Chef,
but finding that since my system is mapped to Chef Ruby and Gems, it's
having some issues with the other Ruby commands.

Since I don't want to change the Chef Ruby mapping as it's more critical to
my work, should I use RVM to create a new Ruby instance?

I'm very unfamiliar with RVM and other Ruby managers, so I'm not sure if
this is the right method to use them or not.

Thanks,
Robert

What do you mean by "Chef Ruby"? What "other Ruby commands"
are you having trouble with?

Also, what platform are you on?

···

On Sun, Apr 19, 2015 at 8:58 AM, Robert Freiberger <rfreiberger@gmail.com> wrote:

I'm a very new Ruby person, mostly my use with Ruby is for Chef cookbook
writing. One of my goals is using Ruby for all of my work outside of Chef,
but finding that since my system is mapped to Chef Ruby and Gems, it's
having some issues with the other Ruby commands.

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

twitter: @hassan
Consulting Availability : Silicon Valley or remote

Chef sets up its own gem manager similar to RVM, so you will have challenges implementing both. I'd be sure you google 'chefdk and RVM issues' to see what others did to do a work around. I have not explored this yet, but you might look into chefdk managing all environments outside of chef itself.

···

Sent from my iPhone

On Apr 19, 2015, at 11:58 AM, Robert Freiberger <rfreiberger@gmail.com> wrote:

Hello Ruby Talk,

I'm a very new Ruby person, mostly my use with Ruby is for Chef cookbook writing. One of my goals is using Ruby for all of my work outside of Chef, but finding that since my system is mapped to Chef Ruby and Gems, it's having some issues with the other Ruby commands.

Since I don't want to change the Chef Ruby mapping as it's more critical to my work, should I use RVM to create a new Ruby instance?

I'm very unfamiliar with RVM and other Ruby managers, so I'm not sure if this is the right method to use them or not.

Thanks,
Robert

Chef sets up its own gem manager

and apparently its own version of Ruby. Didn't realize that but
good to know :slight_smile:

similar to RVM, so you will have challenges implementing both.

What kind of challenges?

My MBA has chef-solo installed alongside a system Ruby as well
as RVM, and I've seen no problems.

···

On Sun, Apr 19, 2015 at 12:40 PM, Jeff Scholen <jmscholen@gmail.com> wrote:

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

twitter: @hassan
Consulting Availability : Silicon Valley or remote

Here is the link to the challenges I've faced with installing chef while working with RVM:

···

Sent from my iPhone

On Apr 19, 2015, at 8:04 PM, Hassan Schroeder <hassan.schroeder@gmail.com> wrote:

On Sun, Apr 19, 2015 at 12:40 PM, Jeff Scholen <jmscholen@gmail.com> wrote:
Chef sets up its own gem manager

and apparently its own version of Ruby. Didn't realize that but
good to know :slight_smile:

similar to RVM, so you will have challenges implementing both.

What kind of challenges?

My MBA has chef-solo installed alongside a system Ruby as well
as RVM, and I've seen no problems.

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
Hassan Schroeder | about.me
twitter: @hassan
Consulting Availability : Silicon Valley or remote

This "issue" starts with
   "As a long time user of Chef, I am finding that installing ChefDK a
    very scary prospect."

!? Is there a TL;DR version of any actual problems that occur when
both ChefDK and RVM are installed?

Reproducible, e.g. command 'foo' should product "result" but instead
produces "not the result you're looking for" ?

···

On Sun, Apr 19, 2015 at 6:11 PM, Jeff Scholen <jmscholen@gmail.com> wrote:

Here is the link to the challenges I've faced with installing chef while
working with RVM:

https://github.com/chef/chef-dk/issues/16

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

twitter: @hassan
Consulting Availability : Silicon Valley or remote