Module: Archive::LibArchive
- Extended by:
- FFI::Library
- Defined in:
- lib/archive/libarchive.rb
Overview
:nodoc:
Defined Under Namespace
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:
151 152 153 154 155 156 |
# File 'lib/archive/libarchive.rb', line 151 def self.enable_input_formats(arg) # :nodoc: archive_read_support_format_gnutar(arg) archive_read_support_format_zip(arg) archive_read_support_format_iso9660(arg) enable_input_compression(arg) end |
.enable_output_archive(arg, type = :tar) ⇒ Object
161 162 163 164 165 166 167 168 |
# File 'lib/archive/libarchive.rb', line 161 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:
100 101 102 |
# File 'lib/archive/libarchive.rb', line 100 def self.stat(*args) # :nodoc: stat64(*args) end |