# File lib/fpm/package/tar.rb, line 49
  def output(output_path)
    output_check(output_path)
    # Unpack the tarball to the staging path
    args = ["-cf", output_path, "-C", staging_path]
    with(tar_compression_flag(output_path)) do |flag|
      args << flag unless flag.nil?
    end
    args << "."

    safesystem("tar", *args)
  end