Class: Kitchen::Provisioner::ChefZeroCaptureSandbox

Inherits:
Chef::CommonSandbox
  • Object
show all
Defined in:
lib/kitchen/provisioner/chef_zero_capture.rb

Overview

For use in a provisioner that does not do any run list evaluation or policy/berks file expansion.

Instance Method Summary collapse

Instance Method Details

#populateObject



27
28
29
30
31
32
# File 'lib/kitchen/provisioner/chef_zero_capture.rb', line 27

def populate
  super
  prepare(:policies)
  prepare(:policy_groups)
  prepare(:cookbook_artifacts)
end

#prepare_cookbooksObject

Override #prepare_cookbooks because we don’t want any cookbook resolving to occur via kitchen through berks, policy



36
37
38
39
# File 'lib/kitchen/provisioner/chef_zero_capture.rb', line 36

def prepare_cookbooks
  cp_cookbooks
  filter_only_cookbook_files
end