lib/fig/operating_system.rb
def create_archive(archive_name, paths_to_archive)
    # TODO: Need to verify files_to_archive exists.
    ::Archive.write_open_filename(
      archive_name, ::Archive::COMPRESSION_GZIP, ::Archive::FORMAT_TAR
    ) do |writer|
      paths_to_archive.each do |path|
        add_path_to_archive(path, writer)
      end
    end
  end
# Expects paths_to_archive as an Array of paths.
Expects paths_to_archive as an Array of paths.
Expects paths_to_archive as an Array of paths .
def create_archive(archive_name, paths_to_archive)
    ::Archive.write_open_filename(
      archive_name, ::Archive::COMPRESSION_GZIP, ::Archive::FORMAT_TAR
    ) do |writer|
      paths_to_archive.each do |path|
        add_path_to_archive(path, writer)
      end
    end
  end
def create_archive ( archive_name , paths_to_archive ) :: Archive . write_open_filename ( archive_name , :: Archive :: COMPRESSION_GZIP , :: Archive :: FORMAT_TAR ) do | writer | paths_to_archive . each do | path | add_path_to_archive ( path , writer ) end end end
Expects paths_to_archive as an Array of paths.
Expects paths_to_archive as an Array of paths .
# TODO: Need to verify files_to_archive exists.
archive_name
paths_to_archive