Module: Deployment::Methods::Zip
- Defined in:
- lib/depengine/dsl/zip.rb
Instance Method Summary collapse
- #tgz_file(tgz_file, source_dir, filename = nil) ⇒ Object
- #untgz_file(tgz_file, target_dir, filename = nil) ⇒ Object
- #unzip_file(zip_file, target_dir, filename = nil) ⇒ Object
Instance Method Details
#tgz_file(tgz_file, source_dir, filename = nil) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/depengine/dsl/zip.rb', line 13 def tgz_file(tgz_file, source_dir, filename = nil) Helper.validates_presence_of @cdb['tar_bin'] Processor.tgz_file(File.join($recipe_config[:deploy_home], tgz_file), \ File.join($recipe_config[:deploy_home], source_dir), \ filename, @cdb['tar_bin']) end |
#untgz_file(tgz_file, target_dir, filename = nil) ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/depengine/dsl/zip.rb', line 22 def untgz_file(tgz_file, target_dir, filename = nil) Helper.validates_presence_of @cdb['tar_bin'] Processor.untgz_file(File.join($recipe_config[:deploy_home], tgz_file), \ File.join($recipe_config[:deploy_home], target_dir), \ filename, @cdb['tar_bin']) end |
#unzip_file(zip_file, target_dir, filename = nil) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/depengine/dsl/zip.rb', line 4 def unzip_file(zip_file, target_dir, filename = nil) Helper.validates_presence_of @cdb['unzip_bin'] Processor.unzip_file(File.join($recipe_config[:deploy_home], zip_file), \ File.join($recipe_config[:deploy_home], target_dir), \ filename, @cdb['unzip_bin']) end |