Module: Archive::LibArchive
- Extended by:
- FFI::Library
- Defined in:
- lib/archive/libarchive.rb
Overview
:nodoc:
Defined Under Namespace
Modules: FFI
Constant Summary collapse
- ARCHIVE_OK =
:nodoc:
0
- ARCHIVE_EOF =
:nodoc:
1
- ARCHIVE_RETRY =
:nodoc:
-10 # :nodoc:
- ARCHIVE_WARN =
:nodoc:
-20 # :nodoc:
- ARCHIVE_FAILED =
:nodoc:
-25 # :nodoc:
- ARCHIVE_FATAL =
:nodoc:
-30 # :nodoc:
- ARCHIVE_EXTRACT_OWNER =
:nodoc:
0x0001
- ARCHIVE_EXTRACT_PERM =
:nodoc:
0x0002
- ARCHIVE_EXTRACT_TIME =
:nodoc:
0x0004
Class Method Summary collapse
-
.enable_input_formats(arg) ⇒ Object
:nodoc:.
- .enable_output_archive(arg, type = :tar) ⇒ Object
-
.stat(*args) ⇒ Object
:nodoc:.
Class Method Details
.enable_input_formats(arg) ⇒ Object
:nodoc:
136 137 138 139 140 141 142 143 144 |
# File 'lib/archive/libarchive.rb', line 136 def self.enable_input_formats(arg) # :nodoc: archive_read_support_format_gnutar(arg) archive_read_support_format_zip(arg) archive_read_support_format_zip(arg) unless ::FFI::Platform.mac? archive_read_support_format_iso9660(arg) end enable_input_compression(arg) end |
.enable_output_archive(arg, type = :tar) ⇒ Object
149 150 151 152 153 154 155 156 |
# File 'lib/archive/libarchive.rb', line 149 def self.enable_output_archive(arg, type=:tar) case type when :tar archive_write_set_format_ustar(arg) when :zip archive_write_set_format_zip(arg) end end |
.stat(*args) ⇒ Object
:nodoc:
97 98 99 |
# File 'lib/archive/libarchive.rb', line 97 def self.stat(*args) # :nodoc: stat64(*args) end |