Chefspec and chef11


#1

Any one having luck with chefspec and chef-client 11?

I’m getting some funky errors :
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:6:in
alias_method': undefined methodbuild_from_file’ for class Class' (NameError) from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:6:insingletonclass’
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:5:in
<class:Provider>' from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:4:inclass:Chef
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:2:in
<top (required)>' from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec.rb:21:inrequire’
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec.rb:21:in
<top (required)>' from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chef/knife/cookbook_create_specs.rb:1:inrequire’
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chef/knife/cookbook_create_specs.rb:1:in
<top (required)>' from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chef-11.4.0/lib/chef/knife/core/subcommand_loader.rb:37:inload’
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chef-11.4.0/lib/chef/knife/core/subcommand_loader.rb:37:in
`block in load_commands’

thoughts?


#2

ah. apparently known (and fixed) issue:


(but rubygems still has the 0.9 chefspec…)

On Thu, Mar 7, 2013 at 4:51 PM, andi abes andi.abes@gmail.com wrote:

Any one having luck with chefspec and chef-client 11?

I’m getting some funky errors :
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:6:in
alias_method': undefined methodbuild_from_file’ for class Class' (NameError) from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:6:insingletonclass’
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:5:in
<class:Provider>' from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:4:inclass:Chef
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:2:in
<top (required)>' from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec.rb:21:inrequire’
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec.rb:21:in
<top (required)>' from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chef/knife/cookbook_create_specs.rb:1:inrequire’
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chef/knife/cookbook_create_specs.rb:1:in
<top (required)>' from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chef-11.4.0/lib/chef/knife/core/subcommand_loader.rb:37:inload’
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chef-11.4.0/lib/chef/knife/core/subcommand_loader.rb:37:in
`block in load_commands’

thoughts?


#3

if you are using bundler, you can specify the git repo , or clone the repo
and do a rake install , till the newer version is published in ruby gems

On Thu, Mar 7, 2013 at 4:35 PM, andi abes andi.abes@gmail.com wrote:

ah. apparently known (and fixed) issue:
https://github.com/acrmp/chefspec/issues/93
(but rubygems still has the 0.9 chefspec…)

On Thu, Mar 7, 2013 at 4:51 PM, andi abes andi.abes@gmail.com wrote:

Any one having luck with chefspec and chef-client 11?

I’m getting some funky errors :
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:6:in
alias_method': undefined methodbuild_from_file’ for class Class' (NameError) from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:6:insingletonclass’
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:5:in
<class:Provider>' from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:4:inclass:Chef
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:2:in
<top (required)>' from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec.rb:21:inrequire’
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec.rb:21:in
<top (required)>' from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chef/knife/cookbook_create_specs.rb:1:inrequire’
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chef/knife/cookbook_create_specs.rb:1:in
<top (required)>' from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chef-11.4.0/lib/chef/knife/core/subcommand_loader.rb:37:inload’
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chef-11.4.0/lib/chef/knife/core/subcommand_loader.rb:37:in
`block in load_commands’

thoughts?