Method: Deployment::Methods::Zip#untgz_file

Defined in:
lib/depengine/dsl/zip.rb

#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