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
- .linked_archive_library ⇒ Object
- .linked_archive_library=(val) ⇒ Object
-
.stat(*args) ⇒ Object
:nodoc:.
Class Method Details
.enable_input_formats(arg) ⇒ Object
:nodoc:
160 161 162 163 164 165 |
# File 'lib/archive/libarchive.rb', line 160 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
170 171 172 173 174 175 176 177 |
# File 'lib/archive/libarchive.rb', line 170 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 |
.linked_archive_library ⇒ Object
91 92 93 |
# File 'lib/archive/libarchive.rb', line 91 def self.linked_archive_library @linked_archive_library end |
.linked_archive_library=(val) ⇒ Object
95 96 97 |
# File 'lib/archive/libarchive.rb', line 95 def self.linked_archive_library=(val) @linked_archive_library = val end |
.stat(*args) ⇒ Object
:nodoc:
108 109 110 |
# File 'lib/archive/libarchive.rb', line 108 def self.stat(*args) # :nodoc: stat64(*args) end |