Class: Vara::ProductArtifactZipper
- Inherits:
-
Object
- Object
- Vara::ProductArtifactZipper
- Includes:
- Loggable
- Defined in:
- lib/vara/product_artifact_zipper.rb
Instance Method Summary collapse
-
#initialize(artifact_path, product_contents, options = {}) ⇒ ProductArtifactZipper
constructor
A new instance of ProductArtifactZipper.
- #zip! ⇒ Object
Methods included from Loggable
Constructor Details
#initialize(artifact_path, product_contents, options = {}) ⇒ ProductArtifactZipper
Returns a new instance of ProductArtifactZipper.
10 11 12 13 14 |
# File 'lib/vara/product_artifact_zipper.rb', line 10 def initialize(artifact_path, product_contents, = {}) @artifact_path = artifact_path @product_contents = product_contents @options = end |
Instance Method Details
#zip! ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/vara/product_artifact_zipper.rb', line 16 def zip! remove_previous_artifacts in_tmp_dir do copy_dirs_and_files create_zip! end end |