Module: ZipUtils::DryRun
- Defined in:
- lib/folio/ziputils.rb
Overview
Dry-run verions of ZipUtils.
This is the same as passing the :dryrun flag to ZipUtils. Which is also equivalent to passing :noop and :verbose together.
Class Method Summary collapse
- .bzip2(file, options = {}) ⇒ Object (also: bzip)
- .compress(format_extension, folder, file = nil, options = {}) ⇒ Object
- .gzip(file, options = {}) ⇒ Object
- .tar(folder, file = nil, options = {}) ⇒ Object
- .tar_bzip2(folder, file = nil, options = {}) ⇒ Object (also: tar_bzip)
- .tar_gzip(folder, file = nil, options = {}) ⇒ Object
- .unbzip2(file, options = {}) ⇒ Object (also: unbzip)
- .ungzip(file, options = {}) ⇒ Object
- .untar(file, options = {}) ⇒ Object
- .untar_bzip2(file, options = {}) ⇒ Object (also: untar_bzip)
- .untar_gzip(file, options = {}) ⇒ Object
- .unzip(file, options = {}) ⇒ Object
- .zip(folder, file = nil, options = {}) ⇒ Object
Class Method Details
.bzip2(file, options = {}) ⇒ Object Also known as: bzip
377 378 379 380 |
# File 'lib/folio/ziputils.rb', line 377 def bzip2(file, ={}) [:dryrun] = true ZipUtils.bzip2(file, ) end |
.compress(format_extension, folder, file = nil, options = {}) ⇒ Object
362 363 364 365 |
# File 'lib/folio/ziputils.rb', line 362 def compress(format_extension, folder, file=nil, ={}) [:dryrun] = true ZipUtils.tar_gzip(format_extension, folder, file, ) end |
.gzip(file, options = {}) ⇒ Object
367 368 369 370 |
# File 'lib/folio/ziputils.rb', line 367 def gzip(file, ={}) [:dryrun] = true ZipUtils.gzip(file, ) end |
.tar(folder, file = nil, options = {}) ⇒ Object
391 392 393 394 |
# File 'lib/folio/ziputils.rb', line 391 def tar(folder, file=nil, ={}) [:dryrun] = true ZipUtils.tar(folder, file, ) end |
.tar_bzip2(folder, file = nil, options = {}) ⇒ Object Also known as: tar_bzip
411 412 413 414 |
# File 'lib/folio/ziputils.rb', line 411 def tar_bzip2(folder, file=nil, ={}) [:dryrun] = true ZipUtils.untar_bzip2(folder, file, ) end |
.tar_gzip(folder, file = nil, options = {}) ⇒ Object
401 402 403 404 |
# File 'lib/folio/ziputils.rb', line 401 def tar_gzip(folder, file=nil, ={}) [:dryrun] = true ZipUtils.tar_gzip(folder, file, ) end |
.unbzip2(file, options = {}) ⇒ Object Also known as: unbzip
384 385 386 387 |
# File 'lib/folio/ziputils.rb', line 384 def unbzip2(file, ={}) [:dryrun] = true ZipUtils.unbzip2(file, ) end |
.ungzip(file, options = {}) ⇒ Object
372 373 374 375 |
# File 'lib/folio/ziputils.rb', line 372 def ungzip(file, ={}) [:dryrun] = true ZipUtils.ungzip(file, ) end |
.untar(file, options = {}) ⇒ Object
396 397 398 399 |
# File 'lib/folio/ziputils.rb', line 396 def untar(file, ={}) [:dryrun] = true ZipUtils.untar(file, ) end |
.untar_bzip2(file, options = {}) ⇒ Object Also known as: untar_bzip
418 419 420 421 |
# File 'lib/folio/ziputils.rb', line 418 def untar_bzip2(file, ={}) [:dryrun] = true ZipUtils.untar_bzip2(file, ) end |
.untar_gzip(file, options = {}) ⇒ Object
406 407 408 409 |
# File 'lib/folio/ziputils.rb', line 406 def untar_gzip(file, ={}) [:dryrun] = true ZipUtils.untar_gzip(file, ) end |
.unzip(file, options = {}) ⇒ Object
430 431 432 433 |
# File 'lib/folio/ziputils.rb', line 430 def unzip(file, ={}) [:dryrun] = true ZipUtils.unzip(file, ) end |
.zip(folder, file = nil, options = {}) ⇒ Object
425 426 427 428 |
# File 'lib/folio/ziputils.rb', line 425 def zip(folder, file=nil, ={}) [:dryrun] = true ZipUtils.unzip(folder, file, ) end |