Module: ZipUtils::NoWrite
- Defined in:
- lib/more/facets/ziputils.rb
Overview
NoWrite Version of ZipUtils.
This is the same as passing :noop flag to ZipUtils methods.
Class Method Summary collapse
- .compress(format_extension, folder, file = nil, options = {}) ⇒ Object
- .tar_bzip2(folder, file = nil, options = {}) ⇒ Object
- .tar_gzip(folder, file = nil, options = {}) ⇒ Object
- .untar_bzip2(file, options = {}) ⇒ Object
- .untar_gzip(file, options = {}) ⇒ Object
- .unzip(file, options = {}) ⇒ Object
- .zip(folder, file = nil, options = {}) ⇒ Object
Class Method Details
.compress(format_extension, folder, file = nil, options = {}) ⇒ Object
220 221 222 223 |
# File 'lib/more/facets/ziputils.rb', line 220 def compress(format_extension, folder, file=nil, ={}) [:noop] = true ZipUtils.tar_gzip(format_extension, folder, file, ) end |
.tar_bzip2(folder, file = nil, options = {}) ⇒ Object
235 236 237 238 |
# File 'lib/more/facets/ziputils.rb', line 235 def tar_bzip2(folder, file=nil, ={}) [:noop] = true ZipUtils.untar_bzip2(folder, file, ) end |
.tar_gzip(folder, file = nil, options = {}) ⇒ Object
225 226 227 228 |
# File 'lib/more/facets/ziputils.rb', line 225 def tar_gzip(folder, file=nil, ={}) [:noop] = true ZipUtils.tar_gzip(folder, file, ) end |
.untar_bzip2(file, options = {}) ⇒ Object
240 241 242 243 |
# File 'lib/more/facets/ziputils.rb', line 240 def untar_bzip2(file, ={}) [:noop] = true ZipUtils.untar_bzip2(file, ) end |
.untar_gzip(file, options = {}) ⇒ Object
230 231 232 233 |
# File 'lib/more/facets/ziputils.rb', line 230 def untar_gzip(file, ={}) [:noop] = true ZipUtils.untar_gzip(file, ) end |