module KitchenChefMonorepo::Helpers
Public Instance Methods
cp_cookbooks()
click to toggle source
# File lib/kitchen_chef_monorepo/helpers.rb, line 21 def cp_cookbooks info "Preparing cookbooks from repository" if config[:cookbook_path].kind_of?(Array) config[:cookbook_path].reverse.each do |p| dir = File.expand_path(p) debug "Using cookbooks from #{dir}" FileUtils.cp_r(File.join(dir, "."), tmpbooks_dir) end end end
tmpbooks_dir()
click to toggle source
# File lib/kitchen_chef_monorepo/helpers.rb, line 33 def tmpbooks_dir File.join(sandbox_path, "cookbooks") end