Module: ZipUtils::Verbose

Defined in:
lib/more/facets/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

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



177
178
179
180
# File 'lib/more/facets/ziputils.rb', line 177

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

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



192
193
194
195
# File 'lib/more/facets/ziputils.rb', line 192

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

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



182
183
184
185
# File 'lib/more/facets/ziputils.rb', line 182

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

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



197
198
199
200
# File 'lib/more/facets/ziputils.rb', line 197

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

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



187
188
189
190
# File 'lib/more/facets/ziputils.rb', line 187

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

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



207
208
209
210
# File 'lib/more/facets/ziputils.rb', line 207

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

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



202
203
204
205
# File 'lib/more/facets/ziputils.rb', line 202

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