chef-boneyard/chef-api

chef-api should not require chef

Closed this issue · 3 comments

The stated goal of chef-api is to have as few dependencies as possible. There is an implicit dependency on the chef gem.

`rescue in block in deep_const_get': can't get const Chef::Environment: uninitialized constant Chef (ArgumentError)

This can be avoided by passing create_additions: false into JSON.parse.

PR forthcoming.

Sorry. What do you mean by "implicit dependency"? Are you saying that Ruby is inflating that class? I thought that was fixed in modern Rubies...

Yes, this is restricted to systems with 1.9.3.

Ah makes sense. I don't use 1.9.3 😄