Module: IMW::CompressedFiles
- Defined in:
- lib/imw/compressed_files.rb,
lib/imw/compressed_files/gz.rb,
lib/imw/compressed_files/bz2.rb,
lib/imw/compressed_files/compressible.rb
Overview
Contains modules which define the behavior of compressed files.
Defined Under Namespace
Modules: Base, Bz2, Compressible, Gz
Constant Summary collapse
- HANDLERS =
Handlers which include modules for compressed file formats as well as the IMW::CompressedFiles::Compressible module for compressing regular files.
[ ["CompressedFiles::Compressible", Proc.new { |r| r.is_local? && r.is_file? && r.path != /\.(bz2|gz|tgz|tbz2)$/ } ], ["CompressedFiles::Gz", Proc.new { |r| r.is_local? && r.path =~ /\.gz$/ && r.path !~ /\.tar\.gz$/ && r.path !~ /\.tgz$/ } ], ["CompressedFiles::Bz2", Proc.new { |r| r.is_local? && r.path =~ /\.bz2$/ && r.path !~ /\.tar\.bz2$/ && r.path !~ /\.tbz2$/ } ] ]