lib/kitchen/driver/vagrant.rb in kitchen-vagrant-1.10.0 vs lib/kitchen/driver/vagrant.rb in kitchen-vagrant-1.11.0
- old
+ new
@@ -76,10 +76,12 @@
default_config :ssh, {}
default_config :synced_folders, []
+ default_config :use_cached_chef_client, false
+
default_config :vagrant_binary, "vagrant"
default_config :vagrantfile_erb,
File.join(File.dirname(__FILE__), "../../../templates/Vagrantfile.erb")
expand_path_for :vagrantfile_erb
@@ -262,9 +264,10 @@
# Return true if we found the criteria to enable the cache_directory
# functionality
def enable_cache?
return false unless config[:cache_directory]
return true if safe_share?(config[:box])
+ return true if config[:use_cached_chef_client]
# Otherwise
false
end