Module: ZipUtils::Verbose

Defined in:
lib/folio/ziputils.rb

Overview

Verbose version of ZipUtils.

This is the same as passing :verbose flag to ZipUtils methods.

Class Method Summary collapse

Class Method Details

.bzip2(file, options = {}) ⇒ Object Also known as: bzip



218
219
220
221
# File 'lib/folio/ziputils.rb', line 218

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

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



203
204
205
206
# File 'lib/folio/ziputils.rb', line 203

def compress(format_extension, folder, file=nil, options={})
  options[:verbose] = true
  ZipUtils.tar_gzip(format_extension, folder, file, options)
end

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



208
209
210
211
# File 'lib/folio/ziputils.rb', line 208

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

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



232
233
234
235
# File 'lib/folio/ziputils.rb', line 232

def tar(folder, file=nil, options={})
  options[:verbose] = true
  ZipUtils.tar(folder, file, options)
end

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



252
253
254
255
# File 'lib/folio/ziputils.rb', line 252

def tar_bzip2(folder, file=nil, options={})
  options[:verbose] = true
  ZipUtils.untar_bzip2(folder, file, options)
end

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



242
243
244
245
# File 'lib/folio/ziputils.rb', line 242

def tar_gzip(folder, file=nil, options={})
  options[:verbose] = true
  ZipUtils.tar_gzip(folder, file, options)
end

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



225
226
227
228
# File 'lib/folio/ziputils.rb', line 225

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

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



213
214
215
216
# File 'lib/folio/ziputils.rb', line 213

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

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



237
238
239
240
# File 'lib/folio/ziputils.rb', line 237

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

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



257
258
259
260
# File 'lib/folio/ziputils.rb', line 257

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

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



247
248
249
250
# File 'lib/folio/ziputils.rb', line 247

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

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



267
268
269
270
# File 'lib/folio/ziputils.rb', line 267

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

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



262
263
264
265
# File 'lib/folio/ziputils.rb', line 262

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