require("chef")
require("chef/knife")
Chef::Config.from_file(knifePath) #knifePath is declared a priori
cookbooks = Chef::Knife.run(["cookbook", "list"])
puts(cookbooks) # => nil
Does chef-apply fit your need? http://www.opscode.com/blog/2013/02/06/chef-11-in-depth-client-improvements/
Archive powered by MHonArc 2.6.16.