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

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

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



240
241
242
243
# File 'lib/more/facets/ziputils.rb', line 240

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

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



230
231
232
233
# File 'lib/more/facets/ziputils.rb', line 230

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

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



250
251
252
253
# File 'lib/more/facets/ziputils.rb', line 250

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

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



245
246
247
248
# File 'lib/more/facets/ziputils.rb', line 245

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