miriamtech-gocd 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9167059bad42ed3079ee60929fa27b6c74dee291189161e8e408f7903669c6a6
4
- data.tar.gz: ae532c28d50f90ea7c67314b7cfeb53481b2a960735f177bbea526f7801937c5
3
+ metadata.gz: 7af105d0fe88fb0fbcb692f0544c4d8e0dc13ba2215aacc966fe301f1b561702
4
+ data.tar.gz: da1f9a676b5d24d63f3cd4301a042a1077894e63d71415d348b7ba3ad6f68b0a
5
5
  SHA512:
6
- metadata.gz: 8bf5c93d5ecbc16e17e7fa78baa33d760b4426f418345291d0e28629934eea404a04d1c46eaa42bde991d6770dc63730fd53e6c9d97386ba4a537359b09bca70
7
- data.tar.gz: 917470546a2343695683a26db8639e0d71ec34435a3c1cd58a60891d8e5b815d2709ecad09deaa4673d7ed7bf21ff1e1a12c3b9bf8a7cce7d719898a227f5e4a
6
+ metadata.gz: b66b0848bd393d63fb6983d5d2f14e1ad636b55b4877cde6749abe0788299624eb8738191387ba216506820e1598ca3f84a8c5e86e73b79c6b62db2c4b959627
7
+ data.tar.gz: 60515e501ddbdecc09810703a91721cf0d1f094df762549847f625db7fc62028b0465540a391e5d1e6563b663295f71b4ada532606b23345bd32b3d1c9b12b8b
@@ -1,6 +1,16 @@
1
1
  module MiriamTech
2
2
  module GoCD
3
3
  module DSL
4
+ def capture_artifacts(prefix = project_name, workdir:, path:, &block)
5
+ with_artifacts_volume(prefix) do |volume_name|
6
+ begin
7
+ yield "-v #{volume_name}:#{workdir}/#{path}"
8
+ ensure
9
+ copy_artifacts_from_volume(volume_name, local_path: path)
10
+ end
11
+ end
12
+ end
13
+
4
14
  def with_artifacts_volume(prefix = project_name, &block)
5
15
  artifacts_volume = sanitized_volume_name("#{prefix}#{build_tag}")
6
16
  docker "volume create #{artifacts_volume}"
@@ -1,5 +1,5 @@
1
1
  module MiriamTech
2
2
  module GoCD
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miriamtech-gocd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Treis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-17 00:00:00.000000000 Z
11
+ date: 2020-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler