Sha256: 99e47812d43f4f6e016d3b10f11f6f88786221d020b3a1f25048dfcfd8270b99
Contents?: true
Size: 893 Bytes
Versions: 4
Compression:
Stored size: 893 Bytes
Contents
module VagrantPlugins module Cachier module Cap module Linux module ChefFileCachePath def self.chef_provisioner?(machine) provisioners = machine.config.vm.provisioners chef_provisioners = [:chef_solo, :chef_client] compat_provisioners = provisioners.keep_if { |p| chef_provisioners.include? p.name } if compat_provisioners.size > 1 raise "One machine is using multiple chef provisioners, which is unsupported." end using_chef = compat_provisioners.empty? ? false : true using_chef end def self.chef_file_cache_path(machine) chef_file_cache_path = nil chef_file_cache_path = '/var/chef/cache' if chef_provisioner?(machine) return chef_file_cache_path end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems