Module: Packmule::Archiver
- Defined in:
- lib/packmule/archiver.rb
Defined Under Namespace
Class Method Summary collapse
-
.create(options) ⇒ Object
Archives the shit out of the directory with the passed options.
Class Method Details
.create(options) ⇒ Object
Archives the shit out of the directory with the passed options.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/packmule/archiver.rb', line 15 def self.create() puts "Creating archives..." [:formats].each do |format| if format == 'zip' # Zipit, zipit good Packmule::Archiver::Zip.create() elsif format == 'tar' # TARzan Packmule::Archiver::Tar.create() elsif format == 'tar.gz' # Targz, klingon pets Packmule::Archiver::Tar.create(.merge({:gzip => true})) elsif format == 'tar.bz2' # Tarbz2, I got nothing... Packmule::Archiver::Tar.create(.merge({:bzip => true})) end end puts "Done creating archives" end |