knife-spork
knife-spork copied to clipboard
'knife spork promote' nil error
Hi there
I'm trying to use spork for the first time but I'm hitting an error could well be my setup :)
C:\chef-repo> chef exec knife spork promote sporker_env example_cookbook --remote -VV
INFO: Using configuration from C:/chef-repo/.chef/knife.rb
C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/knife-spork-1.6.3/lib/knife-spork/runner.rb:195:in `exist?': no implicit conversion of nil into String (TypeError)
I'm trying to workout whats missing. I saw on your repo you are now at 1.7.0, I currently have 1.6.3 which is included in my chefdk but I don't know how to get knife to use your updated gem
I've ran chef exec gem install knife-spork
and that installed the new version but my knife command still uses 1.6.3
Sorry if its a bit vague, if it down to my setup, happy to do a pr to update docs or something to help pay it forward.
Thanks
Gary
Is the knife command you're hitting definitely the one installed under chefdk?
The error you're hitting is checking for the existence of a Berksfile specified in the "berksfile" attribute of your spork config by the way - do you have any value set there?