class ChefCLI::Policyfile::LocalLockFetcher
def lock_data
-
(String)
- of the policyfile lock data
def lock_data FFI_Yajl::Parser.new.parse(content).tap do |data| validate_revision_id(data["revision_id"], source_options) data["cookbook_locks"].each do |cookbook_name, cookbook_lock| cookbook_path = cookbook_lock["source_options"]["path"] unless cookbook_path.nil? cookbook_lock["source_options"]["path"] = transform_path(cookbook_path) end end end end