class ChefCLI::Policyfile::LocalCookbook

def assert_required_keys_valid!(lock_data)

def assert_required_keys_valid!(lock_data)
  super
  source = lock_data["source"]
  if source.nil?
    raise InvalidLockfile, "Lockfile cookbook_lock for #{name} is invalid. Lock data for a local cookbook must have a `source' attribute"
  end
  unless source.is_a?(String)
    raise InvalidLockfile, "Lockfile cookbook_lock for #{name} is invalid: `source' attribute must be a String (got: #{source.inspect})"
  end
end