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

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, options={})
  options[:dryrun] = true
  ZipUtils.bzip2(file, options)
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, options={})
  options[:dryrun] = true
  ZipUtils.tar_gzip(format_extension, folder, file, options)
end

.gzip(file, options = {}) ⇒ Object



367
368
369
370
# File 'lib/folio/ziputils.rb', line 367

def gzip(file, options={})
  options[:dryrun] = true
  ZipUtils.gzip(file, options)
end

.tar(folder, file = nil, options = {}) ⇒ Object



391
392
393
394
# File 'lib/folio/ziputils.rb', line 391

def tar(folder, file=nil, options={})
  options[:dryrun] = true
  ZipUtils.tar(folder, file, options)
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, options={})
  options[:dryrun] = true
  ZipUtils.untar_bzip2(folder, file, options)
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, options={})
  options[:dryrun] = true
  ZipUtils.tar_gzip(folder, file, options)
end

.unbzip2(file, options = {}) ⇒ Object Also known as: unbzip



384
385
386
387
# File 'lib/folio/ziputils.rb', line 384

def unbzip2(file, options={})
  options[:dryrun] = true
  ZipUtils.unbzip2(file, options)
end

.ungzip(file, options = {}) ⇒ Object



372
373
374
375
# File 'lib/folio/ziputils.rb', line 372

def ungzip(file, options={})
  options[:dryrun] = true
  ZipUtils.ungzip(file, options)
end

.untar(file, options = {}) ⇒ Object



396
397
398
399
# File 'lib/folio/ziputils.rb', line 396

def untar(file, options={})
  options[:dryrun] = true
  ZipUtils.untar(file, options)
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, options={})
  options[:dryrun] = true
  ZipUtils.untar_bzip2(file, options)
end

.untar_gzip(file, options = {}) ⇒ Object



406
407
408
409
# File 'lib/folio/ziputils.rb', line 406

def untar_gzip(file, options={})
  options[:dryrun] = true
  ZipUtils.untar_gzip(file, options)
end

.unzip(file, options = {}) ⇒ Object



430
431
432
433
# File 'lib/folio/ziputils.rb', line 430

def unzip(file, options={})
  options[:dryrun] = true
  ZipUtils.unzip(file, options)
end

.zip(folder, file = nil, options = {}) ⇒ Object



425
426
427
428
# File 'lib/folio/ziputils.rb', line 425

def zip(folder, file=nil, options={})
  options[:dryrun] = true
  ZipUtils.unzip(folder, file, options)
end