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

Version Path
depengine-3.0.20 lib/depengine/dsl/zip.rb
depengine-3.0.19 lib/depengine/dsl/zip.rb
depengine-3.0.18 lib/depengine/dsl/zip.rb
depengine-3.0.17 lib/depengine/dsl/zip.rb
depengine-3.0.16 lib/depengine/dsl/zip.rb
depengine-3.0.15 lib/depengine/dsl/zip.rb
depengine-3.0.14 lib/depengine/dsl/zip.rb
depengine-3.0.13 lib/depengine/dsl/zip.rb
depengine-3.0.12 lib/depengine/dsl/zip.rb
depengine-3.0.11 lib/depengine/dsl/zip.rb
depengine-3.0.10 lib/depengine/dsl/zip.rb
depengine-3.0.9 lib/depengine/dsl/zip.rb
depengine-3.0.8 lib/depengine/dsl/zip.rb
depengine-3.0.7 lib/depengine/dsl/zip.rb
depengine-3.0.6 lib/depengine/dsl/zip.rb
depengine-3.0.5 lib/depengine/dsl/zip.rb
depengine-3.0.4 lib/depengine/dsl/zip.rb
depengine-3.0.3 lib/depengine/dsl/zip.rb
depengine-3.0.2 lib/depengine/dsl/zip.rb
depengine-3.0.1 lib/depengine/dsl/zip.rb