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 +4 -4
- data/lib/miriamtech/gocd/artifacts.rb +10 -0
- data/lib/miriamtech/gocd/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7af105d0fe88fb0fbcb692f0544c4d8e0dc13ba2215aacc966fe301f1b561702
|
4
|
+
data.tar.gz: da1f9a676b5d24d63f3cd4301a042a1077894e63d71415d348b7ba3ad6f68b0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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}"
|
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.
|
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-
|
11
|
+
date: 2020-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|