class ChefCLI::Policyfile::LocalLockFetcher
def path
def path @path ||= begin path = abs_path if path.directory? path = path.join("#{name}.lock.json") unless path.file? raise ChefCLI::LocalPolicyfileLockNotFound.new( "Expected to find file #{name}.lock.json inside #{source_options[:path]}. If the file name is different than this, provide the file name as part of the path." ) end else unless path.file? raise ChefCLI::LocalPolicyfileLockNotFound.new( "The provided path #{source_options[:path]} does not exist." ) end end path end end