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
- .compress(format_extension, folder, file = nil, options = {}) ⇒ Object
- .tar_bzip2(folder, file = nil, options = {}) ⇒ Object
- .tar_gzip(folder, file = nil, options = {}) ⇒ Object
- .untar_bzip2(file, options = {}) ⇒ Object
- .untar_gzip(file, options = {}) ⇒ Object
- .unzip(file, options = {}) ⇒ Object
- .zip(folder, file = nil, options = {}) ⇒ Object
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, ={}) [:verbose] = true ZipUtils.tar_gzip(format_extension, folder, file, ) 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, ={}) [:verbose] = true ZipUtils.untar_bzip2(folder, file, ) 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, ={}) [:verbose] = true ZipUtils.tar_gzip(folder, file, ) end |
.untar_bzip2(file, options = {}) ⇒ Object
197 198 199 200 |
# File 'lib/more/facets/ziputils.rb', line 197 def untar_bzip2(file, ={}) [:verbose] = true ZipUtils.untar_bzip2(file, ) end |
.untar_gzip(file, options = {}) ⇒ Object
187 188 189 190 |
# File 'lib/more/facets/ziputils.rb', line 187 def untar_gzip(file, ={}) [:verbose] = true ZipUtils.untar_gzip(file, ) end |
.unzip(file, options = {}) ⇒ Object
207 208 209 210 |
# File 'lib/more/facets/ziputils.rb', line 207 def unzip(file, ={}) [:verbose] = true ZipUtils.unzip(file, ) end |
.zip(folder, file = nil, options = {}) ⇒ Object
202 203 204 205 |
# File 'lib/more/facets/ziputils.rb', line 202 def zip(folder, file=nil, ={}) [:verbose] = true ZipUtils.unzip(folder, file, ) end |