global

def parse_metadata(pathname)

Internal: Reads metadata recorded on the last build, if it exists.
def parse_metadata(pathname)
  return default_metadata unless pathname.exist?
  JSON.parse(pathname.read.to_s).transform_keys(&:to_sym).slice(*members)
rescue JSON::JSONError, Errno::ENOENT, Errno::ENOTDIR
  default_metadata
end