class Mixlib::Archive

def extract(destination, perms: true, ignore: [])

def extract(destination, perms: true, ignore: [])
  ignore = [/^\.$/, /\.{2}#{path_separator}/] + Array(ignore)
  create_and_empty(destination)
  archiver.extract(destination, perms: perms, ignore: ignore)
end