Sha256: b58223c995a83681d50bc8e0f2a5479a47fb7400958beb5916d745d3abc374a2
Contents?: true
Size: 1.13 KB
Versions: 21
Compression:
Stored size: 1.13 KB
Contents
module Deployment module Methods module Zip 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 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 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 end end end
Version data entries
21 entries across 21 versions & 1 rubygems